Code Monkey home page Code Monkey logo

Comments (4)

zhengyuf avatar zhengyuf commented on July 17, 2024

check this out: NVlabs/few_shot_gaze#19
are you using multi-gpu training?

from sted-gaze.

LeArmadillo avatar LeArmadillo commented on July 17, 2024

yes

from sted-gaze.

LeArmadillo avatar LeArmadillo commented on July 17, 2024

I managed to fix it by adjusting the load_model function in util.py to remove the "module" word from the keys, you'll need to do something similar for the decoder and discriminator:

if next(iter(checkpoint['encoder'].keys())).startswith('module.'):
    checkpoint['encoder'] = dict([(k[7:], v) for k, v in checkpoint['encoder'].items()])

from sted-gaze.

zhengyuf avatar zhengyuf commented on July 17, 2024

Hey,
the provided model checkpoint is trained with single gpu, I just tested eval.py with both single and multi gpu training, and i had no problem loading the problem with either case.
Maybe if someone else meets the same problem as you, they can consider to remove 'module' as you did.

from sted-gaze.

Related Issues (15)

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.