hezhangsprinter / DCPDN

Densely Connected Pyramid Dehazing Network (CVPR'2018)
405 stars 112 forks source link

train.py runtime error #36

Open ImageWQ opened 5 years ago

ImageWQ commented 5 years ago

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.

hezhangsprinter commented 5 years ago

Please check the pix2pix_val2.py in the datasets folder.

ImageWQ commented 5 years ago

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.

sunxiangs commented 5 years ago

@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?

ImageWQ commented 5 years ago

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

sunxiangs commented 5 years ago

@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

lazykoalazzz commented 5 years ago

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.

New-generation-hsc commented 5 years ago

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

LiMinghui19 commented 4 years ago

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

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