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: 'DefaultCfg' object does not support item assignment #69

Open
kona419 opened this issue Oct 18, 2023 · 1 comment
Open

TypeError: 'DefaultCfg' object does not support item assignment #69

kona419 opened this issue Oct 18, 2023 · 1 comment

Comments

@kona419
Copy link

kona419 commented Oct 18, 2023

Hello, I am just trying to rerun your codes.
But I keep getting this error.
How can I solve this problem?

Traceback (most recent call last):
File "/home/nayoung/.conda/envs/nayoung/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 59, in _wrap
fn(i, *args)
File "/home/nayoung/nayoung/segmenter/segm/train.py", line 205, in main
model = create_segmenter(net_kwargs)
File "/home/nayoung/nayoung/segmenter/segm/model/factory.py", line 109, in create_segmenter
encoder = create_vit(model_cfg)
File "/home/nayoung/nayoung/segmenter/segm/model/factory.py", line 68, in create_vit
model_cfg["image_size"][1],
TypeError: 'DefaultCfg' object does not support item assignment

@bo-miao
Copy link

bo-miao commented Jul 27, 2024

Solved by using this version: pip install timm==0.4.12

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