Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Losses turned into NaN on ADE20K dataset #13

Closed
TrickyGo opened this issue Jul 19, 2020 · 3 comments
Closed

Losses turned into NaN on ADE20K dataset #13

TrickyGo opened this issue Jul 19, 2020 · 3 comments

Comments

@TrickyGo
Copy link

Hello there, I'm trying to train the model on ADE20K dataset, but after a few epoches of training, the losses turned into NaN and D_real turned into 0.000(generated blank images). Would you please tell me what could be the problem? Thanks a lot!
Here's how I trained:
python train.py --name ADE --load_size 256 --crop_size 256 --dataset_mode custom --label_dir /home/ADEChallengeData2016/annotations/training --image_dir /home/ADEChallengeData2016/images/training --label_nc 151 --no_instance --batchSize 2 --gpu_ids 7

@ZPdesu
Copy link
Owner

ZPdesu commented Aug 6, 2020

I am not sure how you implemented the model on ADE20K dataset. You may need to use torch.nn.ModuleList to manage your per-region Conv. For simplicity, you can try to relax the constraint of per-region Conv and replace it with general 3*3 Convs.

@TrickyGo
Copy link
Author

Will try. Thanks for your advice!

@fido20160817
Copy link

Will try. Thanks for your advice!

Hi, have you finished the training on ADE20K? what's the performance, can you share the trained model?

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

No branches or pull requests

3 participants