Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Train VaeEncoderDocder issues #16

Open
chenhy-97 opened this issue Jul 8, 2022 · 0 comments
Open

Train VaeEncoderDocder issues #16

chenhy-97 opened this issue Jul 8, 2022 · 0 comments

Comments

@chenhy-97
Copy link

We attempt to train a new encoder, but it's shown this errors as follow.

Traceback (most recent call last):
File "tools/train_encoder.py", line 161, in
main()
File "tools/train_encoder.py", line 138, in main
test_cfg=cfg.test_cfg)
File "/root/picasso/haoyuan_chen/chy/mmgeneration/mmgen/models/builder.py", line 32, in build_model
return build(cfg, MODELS, dict(train_cfg=train_cfg, test_cfg=test_cfg))
File "/root/picasso/haoyuan_chen/chy/mmgeneration/mmgen/models/builder.py", line 27, in build
return build_from_cfg(cfg, registry, default_args)
File "/root/picasso/haoyuan_chen/anaconda3/envs/facestylor/lib/python3.7/site-packages/mmcv/utils/registry.py", line 45, in build_from_cfg
f'{obj_type} is not in the {registry.name} registry')
KeyError: 'PSPEncoderDecoder is not in the model registry'

And we refer to the methods on the forum, such as reconfiguring the requirements.txt and using @models register_ module(name='PSPEncoderDecoder', force=True), but they are useless.

We now suspect that it is caused by the mismatch between the version of mmcv and the version of mmgen. Our version of mmcv is 1.4.8 and the version of mmgen is 0.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant