Giter Club home page Giter Club logo

Comments (6)

wasdyouli avatar wasdyouli commented on July 20, 2024 2

你好,我也遇到了相似的错误,RuntimeError: Error(s) in loading state_dict for UnetGenerator:
我搜索到的解决方法是将base_model.py中的network.load_state_dict(torch.load(save_path))改为network.load_state_dict(torch.load(save_path),False)就可以完成模型加载了,希望能帮到你 @yumouse

from enlightengan.

kuang22 avatar kuang22 commented on July 20, 2024

@wasdyouli thanks a lot first~ Could I ask all your modifications based on the latest master branch code to test models with CPU? I'm not sure whether some modifications made before is valid or redundant and whether they would conflict with yours.

from enlightengan.

wasdyouli avatar wasdyouli commented on July 20, 2024

@yumouse 抱歉,我也是刚好遇到和你相似的问题,目前还没有完成在CPU上的测试,你可以先尝试我说的方法,根据你之前的描述,模型加载部分应该是可以完成的 .

from enlightengan.

kuang22 avatar kuang22 commented on July 20, 2024

@wasdyouli Ok, thx anyway! I will keep trying.

from enlightengan.

jinzhenmu avatar jinzhenmu commented on July 20, 2024

@yumouse 请问一下python scripts/script.py --predict或者 python predict.py,是否需要翻墙用外网?

from enlightengan.

yifanjiang19 avatar yifanjiang19 commented on July 20, 2024

@yumouse no need

from enlightengan.

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.