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

num_patches_per_image missing in the default config file for swinunetr #1848

Open
aryaabdi opened this issue Sep 26, 2024 · 1 comment
Open

Comments

@aryaabdi
Copy link

aryaabdi commented Sep 26, 2024

I am trying to run auto3Dseg with swinunetr backbone. I follow the toy example, however, I am getting the following error:

Traceback (most recent call last):
File "/home/z004br3h/projects/rg_segmentation/exp/pretrain_headneck_rev_3_swinunetr/swinunetr_0/scripts/train.py", line 850, in
fire.Fire()
File "/home/z004br3h/python/pyenv/pt2/lib/python3.10/site-packages/fire/core.py", line 143, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/z004br3h/python/pyenv/pt2/lib/python3.10/site-packages/fire/core.py", line 477, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/home/z004br3h/python/pyenv/pt2/lib/python3.10/site-packages/fire/core.py", line 693, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/home/z004br3h/projects/rg_segmentation/exp/pretrain_headneck_rev_3_swinunetr/swinunetr_0/scripts/train.py", line 192, in run
train_transforms = parser.get_parsed_content("transforms_train")
File "/home/z004br3h/python/pyenv/pt2/lib/python3.10/site-packages/monai/bundle/config_parser.py", line 290, in get_parsed_content
return self.ref_resolver.get_resolved_content(id=id, **kwargs)
File "/home/z004br3h/python/pyenv/pt2/lib/python3.10/site-packages/monai/bundle/reference_resolver.py", line 193, in get_resolved_content
return self._resolve_one_item(id=id, **kwargs)
File "/home/z004br3h/python/pyenv/pt2/lib/python3.10/site-packages/monai/bundle/reference_resolver.py", line 163, in _resolve_one_item
self._resolve_one_item(id=d, waiting_list=waiting_list, **kwargs)
File "/home/z004br3h/python/pyenv/pt2/lib/python3.10/site-packages/monai/bundle/reference_resolver.py", line 163, in _resolve_one_item
self._resolve_one_item(id=d, waiting_list=waiting_list, **kwargs)
File "/home/z004br3h/python/pyenv/pt2/lib/python3.10/site-packages/monai/bundle/reference_resolver.py", line 159, in _resolve_one_item
raise ValueError(msg) from err
ValueError: the referring item @num_patches_per_image is not defined in the config content.

The variable num_patches_per_image is not defined in the default hyperparameter.yaml. Does this variable need to be set manually?

@aryaabdi aryaabdi changed the title I am trying to run auto3Dseg with swinunetr backbone. I follow the toy example, however, I am getting the following error: num_patches_per_image missing in the default config file for swinunetr Sep 26, 2024
@KumoLiu
Copy link
Contributor

KumoLiu commented Sep 27, 2024

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