fjchange / pytorch_ano_pre

Pytorch Re-implement of ano_pre_cvpr2018, flownet2 / lite-flownet used.
49 stars 20 forks source link

运行错误TypeError: zip argument #1 must support iteration #2

Closed a726 closed 5 years ago

a726 commented 5 years ago

您好,运行train.py出现了下面的错误,这个是怎么回事?在网上没有查到解决方案。 (pytorch) E:\pytorch_ano_pre-master\ano_pre>python train.py initializing the model with Generator-Unet 4 layers,PixelDiscriminator with filters [128, 256, 512, 512] Traceback (most recent call last): File "train.py", line 217, in train(num_clips,num_unet_layers,num_channels*(num_clips-num_his),num_channels,discriminatorchannels) File "train.py", line 126, in train for (input,),(testinput,) in zip(dataset_loader,test_dataloader): TypeError: zip argument #1 must support iteration

(pytorch) E:\pytorch_ano_pre-master\ano_pre>Traceback (most recent call last): File "", line 1, in File "C:\Users\admin\Anaconda3\envs\pytorch\lib\multiprocessing\spawn.py", line 105, in spawn_main exitcode = _main(fd) File "C:\Users\admin\Anaconda3\envs\pytorch\lib\multiprocessing\spawn.py", line 115, in _main self = reduction.pickle.load(from_parent) EOFError: Ran out of input 期待您的回复

fjchange commented 5 years ago

请检查路径是否正确,查看下zip()里内容是否为空,代码应该是没错的

a726 commented 5 years ago

好  那我再研究研究   谢谢你! 有问题再请教你!非常感谢你回复我!

---原始邮件--- 发件人: "kiwi_fung"<notifications@github.com> 发送时间: 2019年10月9日(星期三) 晚上6:31 收件人: "fjchange/pytorch_ano_pre"<pytorch_ano_pre@noreply.github.com>; 抄送: "Xiaoyuan Zhang"<306835421@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [fjchange/pytorch_ano_pre] 运行错误TypeError: zip argument #1 must support iteration (#2)

你检查路径是否正确,查看下zip()里内容是否为空,代码应该是没错的

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.