GithubHelp home page GithubHelp logo

Comments (3)

gmargo11 avatar gmargo11 commented on June 12, 2024

Hi @MariaBana ,

Unfortunately I've noticed unpickling .pt files on a new machine can be unreliable. I switched to .jit files for deployment and the play script https://github.com/Improbable-AI/walk-these-ways/blob/master/scripts/play.py.

I haven't figured out why yet, but I think it can result from different pickle version, different torch version, other differences in dependencies, or a corrupted .pt file. If the .pt file was corrupted during download, you could try deleting it and re-downloading it from Github. Otherwise, the most certain solution will be to train a new model from scratch in your own development setup, and then try loading that model, since you'll know it's in the correct format

-Gabe

from walk-these-ways.

ZhengmaoHe avatar ZhengmaoHe commented on June 12, 2024

Thank you for your suggestion. After various attempts, I finally solved this problem by directly using
weights = torch.load(RunnerArgs.resume_path), which might be helpful for others.

from walk-these-ways.

fangzhiyuan1995 avatar fangzhiyuan1995 commented on June 12, 2024

Thank you for your suggestion. After various attempts, I finally solved this problem by directly using weights = torch.load(RunnerArgs.resume_path), which might be helpful for others.

Excuse me, can you post the modification code here?

from walk-these-ways.

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.