Code Monkey home page Code Monkey logo

Comments (4)

cpgaffney1 avatar cpgaffney1 commented on May 18, 2024

I have a suspicion it may be due to a bad interaction between different dependencies. Could you try to strip out the extra stuff unrelated to checkpointing, without removing any imports and see if that works?

If it still hangs, you can start removing some imports, and the issue should resolve (at worst by the point where you're only importing Orbax).

Also, a few nits:
handlers = {'state': orbax.checkpoint.PyTreeCheckpointer()}: this should be checkpointers. Handler is a different concept in Orbax and will rapidly lead to bugs if you confuse the two.
orbax.checkpoint.Checkpointer(orbax.checkpoint.PyTreeCheckpointHandler()) is equivalent to orbax.checkpoint.PyTreeCheckpointer()

from orbax.

zjniu avatar zjniu commented on May 18, 2024

Thank you for the suggestions! It turns out

import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('QtAgg')
%matplotlib qt

in my notebook were the lines of code causing the issue. Is there a way to solve this issue other than not importing?

from orbax.

cpgaffney1 avatar cpgaffney1 commented on May 18, 2024

I'm afraid your guess is as good as mine, since I'm not familiar with this particular backend, and there appears to be no problem with matplotlib without overriding the backend. Is it possible to skip that part?

from orbax.

zjniu avatar zjniu commented on May 18, 2024

Yep, matplotlib by itself is not the issue. The qt backend is more of a convenience, not at all necessary. I will disable it for now. Thanks for the help!

from orbax.

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.