Code Monkey home page Code Monkey logo

Comments (6)

titu1994 avatar titu1994 commented on July 28, 2024
  1. There is a note for all people who wish to use theano in the guide.md as well as the beginning of readme.md. To use theano with Keras, open the ~/.keras directory (it is a hidden directory, so use Ctrl H to see hidden folders) and configure their keras.json file inside it as below:
    {
    "image_dim_ordering": "th",
    "floatx": "float32",
    "backend": "theano",
    "epsilon": 1e-07
    }
  2. Update your scipy library. imread is in scipy and should have the mode argument.
  3. That change will cause a crash because the second argument must be an array, not the mode argument. The mode argument is the 3rd parameter. However, the error caused due to that shouldn't happen either. The image shape is (width, height, channel), and so the rotation of the RGB to BGR in the channel axis should be fine.
  4. Path from the root is prefered, but it works with relative path as well. It is prefered to use absolute path simply because you can place content, style and generated images in separate folders.

I would also advise you to simply install Mono (instructions for that are in Guide.md) and directly run the script helper program. It is available in the Releases tab of the project here https://github.com/titu1994/Neural-Style-Transfer/releases

This allows easy selection of images, changing of parameters and other things which allow easier use of the script. If there is some problem and it shuts down automatically, then you can copy the command arguments as well and run it in the Terminal

from neural-style-transfer.

wlxyhy avatar wlxyhy commented on July 28, 2024

Thank you very much, I'll try it

from neural-style-transfer.

wlxyhy avatar wlxyhy commented on July 28, 2024

It does work, but there's a problem:
nvcc compiler not found on $PATH. Check your nvcc installation and try again.
Is that made the iteration cycle to more than 200 seconds?

from neural-style-transfer.

titu1994 avatar titu1994 commented on July 28, 2024

Have you set up your CUDA path properly? nvcc compiler is contained in the bin folder of your CUDA installation. Usually inside bin folder of the CUDA installation.

Check if the cuda installation is added to your path variable. You need to export PATH=${CUDA_HOME}/bin:${PATH} where CUDA_HOME is the path to your cuda installation. Please read the docs to setup CUDA from here - http://www.r-tutor.com/gpu-computing/cuda-installation/cuda7.5-ubuntu

from neural-style-transfer.

wlxyhy avatar wlxyhy commented on July 28, 2024

Thank you, there are still problems, perhaps I should reinstall cuda

from neural-style-transfer.

titu1994 avatar titu1994 commented on July 28, 2024

There is no need to reinstall cuda. Set the cuda path appropriately and it should work.

from neural-style-transfer.

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.