soumith / dcgan.torch

A torch implementation of http://arxiv.org/abs/1511.06434
Other
1.45k stars 413 forks source link

Errors of running the main.lua #15

Open LeonardKnuth opened 8 years ago

LeonardKnuth commented 8 years ago

I tried to run the main.lua using the command "DATA_ROOT=celebA dataset=folder th main.lua", but encountered the errors as follows

{ ntrain : inf beta1 : 0.5 name : "experiment1" niter : 25 batchSize : 64 ndf : 64 fineSize : 64 nz : 100 loadSize : 96 gpu : 1 ngf : 64 dataset : "folder" lr : 0.0002 noise : "normal" nThreads : 4 display_id : 10 display : 1 } Random Seed: 8565
Starting donkey with id: 1 seed: 8566 table: 0x40928780 Starting donkey with id: 2 seed: 8567 table: 0x417e0f70 Starting donkey with id: 3 seed: 8568 table: 0x40945ec0 Starting donkey with id: 4 seed: 8569 table: 0x414d2728 Loading train metadata from cache Loading train metadata from cache Loading train metadata from cache Loading train metadata from cache Dataset: folder Size: 33436
/usr/local/torch7/install/bin/luajit: main.lua:82: attempt to call method 'apply' (a nil value) stack traceback: main.lua:82: in main chunk [C]: in function 'dofile' ...cal/torch7/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk [C]: at 0x00406640

I am sure the Torch is installed correctly. What is the problem? I am looking forward to your answer. Thanks a lot.

HaraldKorneliussen commented 8 years ago

Exactly the same as this issue:

https://github.com/soumith/dcgan.torch/issues/10

Your torch may be correctly installed, but it isn't recent. Whenever something like this appears, the first thing I try is luarocks install torch, nn, cunn etc.