Skip to content
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

Cant run example with landscapes #2

Closed
kyeshmz opened this issue Aug 25, 2017 · 6 comments
Closed

Cant run example with landscapes #2

kyeshmz opened this issue Aug 25, 2017 · 6 comments

Comments

@kyeshmz
Copy link

kyeshmz commented Aug 25, 2017

Hey,
Running this on Razerblade w/ cudnn and the CUDA installed.
Seem to be getting this error, any tips to get around it?

reads/threads.lua:183: [thread 4 callback] /home/USER/Desktop/art-DCGAN/data/donkey_folder.lua:20: bad argument #2 to 'error' (number expected, got string)

@robbiebarrat
Copy link
Owner

robbiebarrat commented Aug 25, 2017

Please post the command you ran and the location of your "landscape" folder...

Also - are you training a new model or are you trying to run the pre-trained model?

@robbiebarrat
Copy link
Owner

Hey did you ever get the issue resolved (and if so- how)? Can I close this?

@kyeshmz
Copy link
Author

kyeshmz commented Aug 29, 2017

DATA_ROOT=landscapes dataset=folder ndf=50 ngf=150 th main.lua

Landscapes folder is in the root folder of art-DCGAN.
Trying to use the pretrained networks.

@robbiebarrat
Copy link
Owner

robbiebarrat commented Aug 29, 2017

if you're trying to use pretrained networks - instead of passing ndf=50 and ngf=150, you need to pass
netD=path_to_discriminator_net.t7
netG=path_to_generator_net.t7

Also, your landscapes folder is titled "landscapes" and not "landscape"? Make sure the folder name is correct when specifying DATA_ROOT, because the error you're getting is related to loading the data.

@kyeshmz
Copy link
Author

kyeshmz commented Aug 31, 2017

Hey, thanks for the advice. I decided to full path everything, but I get this error, landscapes file is created with the default scraping.

/home/rzmml/torch/install/bin/luajit: /home/rzmml/torch/install/share/lua/5.1/threads/threads.lua:183: [thread 2 callback] /home/rzmml/torch/install/share/lua/5.1/image/init.lua:235: Not a JPEG file: starts with 0x47 0x49

@robbiebarrat
Copy link
Owner

Hm... Looks like the scraper couldn't finish downloading a few of the images...

If you're on linux, you can run find . -iname '*.jpg' -print0 | xargs -0 jpeginfo -c and delete all of the files it says there, but if you're on windows you'll have to just sort the images by file size and delete the ~10 smallest and ~10 largest images... The scraper usually messes up on those.

I'll commit something hopefully this weekend and add that into the scraper, but for now you'll have to do it manually :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants