-
Notifications
You must be signed in to change notification settings - Fork 814
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
Reinstalled System and Now Get Unexpected Results #153
Comments
I am attempting to trouble shoot the issue the best I can, and interestingly, I get the identical (unexpected) results if I comment out line 54 of If I change line 54 from: To: So it seems like the critical evaluate() function is not doing anything now. Any suggestions? |
I just tried manually importing
|
I tried using an AWS image configured for Torch and everything worked as expected. So I archived the torch directory and copied to my machine then ran the install script, and it works as expected on my machine now. It still gets the same error as my post directly above however, so that was a red herring for me. This leads me to believe that the current repository of Torch is not compatible with fast-neural-style. Its a shame that they don't have versioning for Torch so one could install a version known to be compatible. |
Let me guess: do you run into trouble only with instance normalization enabled? So do I... |
Quite possibly; all my models have instance normalization enabled, so I didn't even try without it. |
There are other people encountering this problem, too, see here #137 |
Thanks, I had not seen that. I can't run CUDA 7.5 because my GPU is not supported before 8.0. But I might try the update script mentioned. Sorry I can't offer any suggestions other than installing an older version of Torch (worked for me). |
Hmm, ok, can you give me the id of the last git commit of torch, I would try to check that out then. |
I would if I knew it. I found an AWS image configured for Torch and archived and copied it to my machine, then ran the install script. |
|
Nice, thanks, I didn't know that! Most recent:
|
This looks like color saturation problem. One step of the network is to subtract different constant values from each of the RGB channel. Somehow, it also switchs the order of the RGB channel to BGR. If the new Ubuntu does not need this, then it will mess up the color. To confirm this, you can switch the RGB channel of the input image to BGR with an image editing tool, such as Python or Matlab. Then use the new image as input of the network. |
Apparently it has something to do the latest torch normalization. Its definitely not a saturation or swapped channel problem. |
I had to rebuild my Ubuntu system after my NVIDIA driver was broken from the kernel update that was automatically installed for the meltdown/spectre vulnerabilities.
From a clean system of 16.04.4, I installed CUDA 8.0, Torch, CuDNN 5.1 and the other requirements. All went smoothly.
But now when I run
fast_neural_style.lua
with any model previously trained, or any of the sample trained models, the results are quite different than what is expected. For instance, this image was created from thecandy.t7_ model
:I get the same results with or without enabling the GPU, and I get the same results on my Mac OS X machine I just installed all the required software on (but without GPU acceleration).
My best guess is something must have changed with the latest Torch7?
The text was updated successfully, but these errors were encountered: