Git Product home page Git Product logo

Comments (7)

zhijian-liu avatar zhijian-liu commented on June 4, 2024

Could you please provide me with a sample code that can reproduce this error? Thanks!

from torchprofile.

thesiti92 avatar thesiti92 commented on June 4, 2024

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.

from torchprofile.

thesiti92 avatar thesiti92 commented on June 4, 2024

Example terminal output:
image

from torchprofile.

zhijian-liu avatar zhijian-liu commented on June 4, 2024

Hi, I've tried to convert it to float. Could you please try the latest version and see whether this issue has been resolved?

from torchprofile.

thesiti92 avatar thesiti92 commented on June 4, 2024

seems to be ok now. i still get the overflow warning but no longer get negative values.
Thanks!

from torchprofile.

zhijian-liu avatar zhijian-liu commented on June 4, 2024

@thesiti92, could you please check the latest version again and see whether the overflow warning has been resolved? Thanks

from torchprofile.

thesiti92 avatar thesiti92 commented on June 4, 2024

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!

from torchprofile.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.