Closed thesiti92 closed 4 years ago
Could you please provide me with a sample code that can reproduce this error? Thanks!
RuntimeWarning: overflow encountered in long_scalars
I get this warning when running
python search.py --dataroot database/night2day
--restore_G_path logs/pix2pix/night2day/supernet/checkpoints/latest_net_G.pth
--output_path logs/pix2pix/night2day/supernet/result.pkl
--ngf 48 --batch_size 32
--config_set channels-48
--real_stat_path real_stat/night2day_B.npz
from the gan-compression repo. I can send you the model if you would like. Seems like to get results I should convert the numbers to something with arbitrary precision.
Example terminal output:
Hi, I've tried to convert it to float. Could you please try the latest version and see whether this issue has been resolved?
seems to be ok now. i still get the overflow warning but no longer get negative values. Thanks!
@thesiti92, could you please check the latest version again and see whether the overflow warning has been resolved? Thanks
yeah sorry my project was on hold for a bit. just tested it and it worked fine for the GAN models i have trained. Thanks again, this is a pretty awesome tool!
I'm getting an
overflow encountered
error and profile gives me a negative number of MACS. is this a torchprofile issue or an issue with my model?