meet some errors in 'trainGAN.lua'
rogerbao opened this issue · comments
I get the error below on running th trainGAN.lua
/IcGAN/data/data.lua:32: attempt to compare number with nil
and the error of data.lua is in
9: function data.new(n, dataset_name, opt_)
32: if n > 0 then
I find that the n in the 'data.lua' equals nil, which is defined in trainGAN.lua by opt.nThreads
32: local data = DataLoader.new(opt.nThreads, opt.dataset, opt)
but i can't find the definition of opt.nThreads in code,then n equals nil.
Please suggest what could possibly be wrong.
Thanks for the issue! I completely overlooked this error.
I've added this explanation. Thanks!