FD-GAN icon indicating copy to clipboard operation
FD-GAN copied to clipboard

The last model cannot be generated

Open Haoru opened this issue 7 years ago • 3 comments

I encountered the following problem when I trained the III step. It has been trained, but the model can't be saved. Could you give me some help?

Traceback (most recent call last): File "train.py", line 117, in main() File "train.py", line 96, in main mAP = evaluator.evaluate(val_loader, dataset.val, dataset.val, top1=False) NameError: name 'val_loader' is not defined

Haoru avatar Jan 31 '19 13:01 Haoru

Hello, I encounter the same problem. Have you solved it?

liulitianji avatar May 02 '19 11:05 liulitianji

It is a mistake that I missed the val_loader when re-arranging the code. You could follow https://github.com/yxgeee/FD-GAN/blob/master/baseline.py#L59 to create the val loader. @liulitianji @Haoru

yxgeee avatar Sep 17 '19 11:09 yxgeee

The problem has been solved. I missed the val_loader in my training. Thank you very much~

Haoru avatar Sep 25 '19 05:09 Haoru