DCPDN icon indicating copy to clipboard operation
DCPDN copied to clipboard

train.py runtime error

Open ImageWQ opened this issue 6 years ago • 8 comments

Hello, when I ran "train.py", I encountered an error in line 206: “StopIteration”. Indicates that "data_val = val_iter. next ()" cannot be iterated. Is there any missing document? After debugging, it feels like "valDataloader" is empty. Thank you very much for your time.

ImageWQ avatar Mar 26 '19 14:03 ImageWQ

Please check the pix2pix_val2.py in the datasets folder.

hezhangsprinter avatar Mar 26 '19 17:03 hezhangsprinter

Thank you very much for your reply. I don't understand it at the moment. I'll check it carefully tomorrow morning, because it's very late and I'm returning to my apartment. I am very interested in your method and hope to get your guidance again.

ImageWQ avatar Mar 26 '19 18:03 ImageWQ

@ImageWQ Hello,i have the same problem as you when i run train. Indicates that "data_val = val_iter. next ()". it also say "TypeError: cat received an invalid combination of arguments - got (tuple, int), but expected one of: (sequence[torch.DoubleTensor] seq) (sequence[torch.DoubleTensor] seq, int dim) didn’t match because some of the arguments have invalid types: (list, int)",How do you solve this problem?

sunxiangs avatar May 06 '19 07:05 sunxiangs

@sunxiangs This may be the lack of some documents, you can contact my QQ to continue to exchange.

ImageWQ avatar May 07 '19 09:05 ImageWQ

@ImageWQ sorry,What's your number? i can not find it.my QQ is 1135561584,Please add me as your friend,thank you very much

sunxiangs avatar May 07 '19 10:05 sunxiangs

Hello, when I ran "train.py", I encountered an error in line 206: “StopIteration”. Indicates that "data_val = val_iter. next ()" cannot be iterated. Is there any missing document? After debugging, it feels like "valDataloader" is empty. Thank you very much for your time.

Hello,i also have the same problem as you, File "train.py", line 206, in data_val = val_iter.next() File "/home/zj/anaconda3/envs/python27/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 271, in next raise StopIteration StopIteration How do you solve this problem?Thank you very much for your time. My QQ is 577670386. Best wishes.

lazykoalazzz avatar May 29 '19 03:05 lazykoalazzz

I encounter this problem too. does any one solve it??

New-generation-hsc avatar Sep 07 '19 08:09 New-generation-hsc

I encounter this problem too. does any one solve it??

Excuseme, have you solved it ? I just met with this problem too.

LiMinghui19 avatar Dec 23 '19 08:12 LiMinghui19