Comments (3)
from fast-neural-style-pytorch.
link directing to google colab notebook containing improved code
https://colab.research.google.com/drive/1lL81ANjjehOAudXy6CHNUHmQ9aFdJvLg#scrollTo=KhEWjKxMb0oO
from fast-neural-style-pytorch.
Hi @p-rit . Thank you improving the notebook. Some comments:
- Before moving on to downloading the models, go back to the content directory (i.e.
%cd ..
) - Edit the lines downloading the helper codes and style image. The current notebook downloads the html files, instead of the raw files that the links are pointing to.
e.g. instead of
instead of
!wget https://github.com/iamRusty/fast-neural-style-pytorch/blob/master/transformer.py
do
!wget https://raw.githubusercontent.com/iamRusty/fast-neural-style-pytorch/master/transformer.py
-
You don't need to put the cell containing itot, ttoi, etc.
utils.py
already has the more updated version of the helper codes. So yeah, you may delete that cell. -
Lastly, display the image after saving the sample image. You may use:
utils.show(sample_image)
Edit: One more thing, there's a typo with the import of the models
from torchvision
Edit2: Also, change the content weight and style weight to 2e-6
and 50
respectively. The current settings were used for udnie, not mosaic. the mosaic style needs more weight on content :)
from fast-neural-style-pytorch.
Related Issues (20)
- vgg16_features.load_state_dict(torch.load(vgg_path), strict=False) HOT 4
- "AttributeError: can't set attribute" HOT 2
- VGG weight file not available on AWS HOT 4
- How to run stylize.py HOT 3
- IndentationError
- Value error while trying to run video.py HOT 9
- Custom model HOT 1
- train my own style image HOT 2
- Share style images? HOT 1
- video.py wrong line
- Trying TransformerNetworkTanh and error when running train.py HOT 1
- What is the License schema ? HOT 2
- Difference between this implementation and PyTorch team's version? HOT 1
- Fixing the save/load generated images HOT 3
- About content loss HOT 4
- Can you share the pre-trained model? HOT 3
- webcam.py: can't adjust resolution? HOT 3
- new style image HOT 2
- I cannot find 'USE_FFMPEG' in video.py. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-neural-style-pytorch.