Giter VIP home page Giter VIP logo

Comments (4)

rinongal avatar rinongal commented on June 15, 2024

Are you having this issue with the Collab, or with the offline training script?

If it's the Collab, you can add:

        if (args.save_interval is not None) and (i > 0) and (i % args.save_interval == 0):
            torch.save(
                {
                    "g_ema": net.generator_trainable.generator.state_dict(),
                    "g_optim": g_optim.state_dict(),
                },
                f"{ckpt_dir}/{str(i).zfill(6)}.pt",
            )

to the training loop.

I'll update the Collab to add model saving support.

from stylegan-nada.

rinongal avatar rinongal commented on June 15, 2024

Colab has been updated. Let me know if you're still having issues.

from stylegan-nada.

ljiqy avatar ljiqy commented on June 15, 2024

Thank you for your quick reply!
I have this issue with the offline training script, I have change offline script according colab, and the issue have been solved, thank you!

from stylegan-nada.

rinongal avatar rinongal commented on June 15, 2024

Happy to help. It doesn't look like the checkpoint code is missing from the train script, so I'm not sure what was causing your issue. Closing for now.

from stylegan-nada.

Related Issues (20)

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.