Code Monkey home page Code Monkey logo

Comments (3)

xiang-zhe avatar xiang-zhe commented on July 22, 2024

hi, i got the problem too, when run the test.py file, did u fix it? @JSharp4273

Traceback (most recent call last):
File "test.py", line 55, in
trainer.gen_a.load_state_dict(state_dict['a'])
KeyError: 'a'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "test.py", line 58, in
state_dict = pytorch03_to_pytorch04(torch.load(opts.checkpoint), opts.trainer)
File "/home/xiang/git/MUNIT/utils.py", line 384, in pytorch03_to_pytorch04
state_dict['a'] = __conversion_core(state_dict_base['a'], trainer_name)
KeyError: 'a'

from munit.

xiang-zhe avatar xiang-zhe commented on July 22, 2024

if use gen_0****.pt, it's ok, but what's the dis_0****.pt and optimizer.pt,
"gen_a , auto-encoder for domain a" in trainer.py line17 that i could understand, but "dis_a, discriminator for domain a " in trainer.py line19 that i don't think i can understand, and more the model optimizer.pt just use to help training? and what do model dis_0***.pt for ?
just use the model gen_0***.pt when test ?
anyone can help me? thank you very much

from munit.

WanyiLi avatar WanyiLi commented on July 22, 2024

I meet the same problem too. I use the gen_*.pt when test.

from munit.

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.