New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
network.py error #14
Comments
If you're in Windows, its easier to use the Script Helper program. It's in the releases tab, or in the script_helper folder if you downloaded the entire repo. It ensures correct syntax in executing the script and makes it much easier to perform style transfers. |
As to the error, its caused by "D:/test". You have to provide a prefix of the image: So if D:/test is your test image directory, you need to provide the final path as "D:/test/temp1_" |
@beckw Try doing this : That will install and upgrade theano from github to the latest version. Also, your error from before is fixed. This is a new error caused by either an old theano version or using Theano with CPU mode without BLAS libraries. Edit: Example after copying the command arguments: |
@titu1994 I've used the command line to upgraded Theano to 0.90, still get the error: |
@beckw I should have made the guide a bit clearer on that. Once you extract the cudnn folder, there should be 3 sub folders inside the cuda folder. Copy those 3 sub folders and paste them in the CUDA 7.5 folder which has many folders. It should then override the "bin", "lib" and "include" folders if I remember correctly. This activates cuDNN with CUDA |
@titu1994 I actually did that and added system variables |
@beckw Did you write a .theanorc.txt file in your home directory with the given settings? In your earlier screenshot, it seems that Theano is still using your CPU. When you use theano in GPU mode with cuDNN, it should show the a few startup lines like :
You have to follow the final few steps to setup the .theanorc.txt in windows home directory : |
@beckw No problem. Do you have more than 1 CUDA installed ? As in CUDA 7.5 and 8 at the same time? This is usually caused then. If not, then see if you overwrote the cuda files with the cudnn files. |
@titu1994 I only have CUDA7.5 installed. and copied files like below: |
@beckw If that still doesnt work, could you try editing the .theanorc.txt file to remove the line saying This may be he problem. If it does run, make sure to check that when running the program it still gives the end part:
|
@titu1994 I've noticed that might be a mistake about CUDNN_PATH in the guide, so I already set both them same. |
@beckw Hmm I don't know what's causing this. For some reason Theano is not able to detect cuDNN. The flag Btw, use cudnn=0.8 at max. Using 100 % of gpu memory usually crashes theano because it cannot allocate the memory required by Windows to render the screen. In any case, cuDNN is needed mainly for the INetwork.py script, since it uses every single layer of the VGG 16 or 19 network which is computationally extremely expensive. You can use the Network.py script instead which uses only 5 layers out of the 16 or 19 to run the program, though quality will be reduced. |
@titu1994 It works after reinstall CUDA and cuDNN. |
@beckw No problem. Glad it finally worked. |
Hi there !
I've downloaded your Neural-Style_Transfer,and try to transfer some pictures. but got an error while computing.
could you help to take a look, thanks a lot.
capture
The text was updated successfully, but these errors were encountered: