Giter Club home page Giter Club logo

Comments (3)

p-rit avatar p-rit commented on August 14, 2024

from fast-neural-style-pytorch.

p-rit avatar p-rit commented on August 14, 2024

link directing to google colab notebook containing improved code

https://colab.research.google.com/drive/1lL81ANjjehOAudXy6CHNUHmQ9aFdJvLg#scrollTo=KhEWjKxMb0oO

from fast-neural-style-pytorch.

rrmina avatar rrmina commented on August 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.