Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

RuntimeError: generator raised StopIteration #31

Open
lkp520 opened this issue Jul 19, 2021 · 0 comments
Open

RuntimeError: generator raised StopIteration #31

lkp520 opened this issue Jul 19, 2021 · 0 comments

Comments

@lkp520
Copy link

lkp520 commented Jul 19, 2021

Dear author, when I run python train.py \ --seed 100 \ --dataset cifar10 \ --dataset-path ./dataset/cifar10 \ --checkpoints-path ./checkpoints \ --batch-size 128 \ --epochs 200 \ --lr 3e-4 \ --lr-decay-steps 1e4 \ --augment True

and it train until 49438/50000 [=======================>.] - ETA: 58s - epoch: 1 - iter: 391 - step: 391 - D loss: 1.3951 - D fake: 0.6976 - D real: 0.6975 - G loss: 8.5754 - G L1: 7.8779 - G gan: 0.6975 - accuracy: 0.0927 It stop and meet the problem:

Traceback (most recent call last):
File "/home/billy/kp_pytorch/Colorizing-with-GANs/src/dataset.py", line 73, in generator
raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "train.py", line 5, in
main(options)
File "/home/billy/kp_pytorch/Colorizing-with-GANs/src/main.py", line 56, in main
model.train()
File "/home/billy/kp_pytorch/Colorizing-with-GANs/src/models.py", line 46, in train
for input_rgb in generator:
RuntimeError: generator raised StopIteration

How can I solve it? Thank you very much!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant