Skip to content

Commit

Permalink
05_02_neural_style_transfer_train_and_analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoungkangkim committed Dec 15, 2019
1 parent bd01497 commit 49bd308
Show file tree
Hide file tree
Showing 5 changed files with 406 additions and 0 deletions.
402 changes: 402 additions & 0 deletions 05_02_neural_style_transfer_train_and_analysis.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Part 1: Introduction to Generative Deep Learning
- 04_02_wgan_camel_analysis.ipynb
- 04_02_wgan_cifar_analysis.ipynb
- 04_03_wgangp_cifar_train_and_analysis.ipynb
- 05_02_neural_style_transfer_and_analysis.ipynb

## requirements.txt

Expand Down
Binary file added data_small/neural_style_transfer/content.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data_small/neural_style_transfer/style.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions models/torch_commons.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# from fastai https://github.com/fastai/fastai/blob/master/fastai/torch_core.py#L87
import torch.nn as nn
import functools
import torch as t
import torch.nn.functional as F
from torchvision import transforms, models

class PrePostInitMeta(type):
"A metaclass that calls optional `__pre_init__` and `__post_init__` methods"
Expand Down

0 comments on commit 49bd308

Please sign in to comment.