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

TypeError: __init__() got an unexpected keyword argument 'in_dim' #30

Open
deeemoney opened this issue Jul 26, 2023 · 1 comment
Open

Comments

@deeemoney
Copy link

Hi, I get an error when I run the v1 model reasoner. What should I do.

Traceback (most recent call last):
File "/root/autodl-fs/VQFR/demo.py", line 153, in
main()
File "/root/autodl-fs/VQFR/demo.py", line 102, in main
restorer = VQFR_Demo(model_path=model_path, upscale=args.upscale, arch=arch, bg_upsampler=bg_upsampler)
File "/root/autodl-fs/VQFR/vqfr/demo_util.py", line 36, in init
self.vqfr = VQFRv1(
File "/root/autodl-fs/VQFR/vqfr/archs/vqfrv1_arch.py", line 188, in init
self.quantizer = GeneralizedQuantizer(quantizer_opt)
File "/root/autodl-fs/VQFR/vqfr/archs/vqganv1_arch.py", line 177, in init
self.quantize_dict[level_name] = build_quantizer(level_opt)
File "/root/autodl-fs/VQFR/vqfr/archs/quantizer_arch.py", line 19, in build_quantizer
quantizer = QUANTIZER_REGISTRY.get(quantizer_type)(**opt)
TypeError: init() got an unexpected keyword argument 'in_dim'

@wizaaaard
Copy link

You can change the value of the key: 'type' in options/train/VQFR/train_vqfr_v1_B16_200K.yml line 108, from L2VectorQuantizer to L2VectorQuantizerKmeans. Then it will be ok, I suppose.

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

2 participants