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

Key 'severity' is not in struct #16

Open
Nnafi1211 opened this issue Sep 26, 2023 · 14 comments
Open

Key 'severity' is not in struct #16

Nnafi1211 opened this issue Sep 26, 2023 · 14 comments

Comments

@Nnafi1211
Copy link

I am having this error. I have moved the train_ddpm.py and train_vqgan.py file in the medicaldiffusion-master directory. My dataset is also in the same directory.

My given command was:
PL_TORCH_DISTRIBUTED_BACKEND=gloo python train_vqgan.py dataset=brats dataset.root_dir='imagesTr/' model=vq_gan_3d model.gpus=1 model.default_root_dir_postfix='flair' model.precision=16 model.embedding_dim=8 model.n_hiddens=16 model.downsample=[2,2,2] model.num_workers=32 model.gradient_clip_val=1.0 model.lr=3e-4 model.discriminator_iter_start=10000 model.perceptual_weight=4 model.image_gan_weight=1 model.video_gan_weight=1 model.gan_feat_weight=4 model.batch_size=2 model.n_codes=16384 model.accumulate_grad_batches=1

The Error Message:
Traceback (most recent call last): File "train_vqgan.py", line 20, in run train_dataset, val_dataset, sampler = get_dataset(cfg)

File "home/medicaldiffusion-master/train/get_dataset.py", line 16, in get_dataset root_dir=cfg.dataset.root_dir, imgtype=cfg.dataset.imgtype, train=True, severity=cfg.dataset.severity, resize=cfg.dataset.resize) omegaconf.errors.ConfigAttributeError: Key 'severity' is not in struct full_key: dataset.severity object_type=dict Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

@daming876
Copy link

I have same error.

@zhao9chen99999
Copy link

same

@JBnoJB
Copy link

JBnoJB commented Dec 4, 2023

same, is it solved?

@zhao9chen99999
Copy link

zhao9chen99999 commented Dec 4, 2023 via email

@975827738
Copy link

same, is it solved?

@zhao9chen99999
Copy link

zhao9chen99999 commented Jul 3, 2024 via email

@supgy
Copy link

supgy commented Jul 9, 2024

问题解决了嘛,求助万能的网友

@mjhatami
Copy link

same, is it solved?

@zhao9chen99999
Copy link

zhao9chen99999 commented Jul 31, 2024 via email

@zfw-cv
Copy link

zfw-cv commented Aug 17, 2024

same, is it solved???

@zhao9chen99999
Copy link

zhao9chen99999 commented Aug 17, 2024 via email

@yichuan1998
Copy link

yichuan1998 commented Sep 18, 2024

I am having this error. I have moved the train_ddpm.py and train_vqgan.py file in the medicaldiffusion-master directory. My dataset is also in the same directory.

My given command was: PL_TORCH_DISTRIBUTED_BACKEND=gloo python train_vqgan.py dataset=brats dataset.root_dir='imagesTr/' model=vq_gan_3d model.gpus=1 model.default_root_dir_postfix='flair' model.precision=16 model.embedding_dim=8 model.n_hiddens=16 model.downsample=[2,2,2] model.num_workers=32 model.gradient_clip_val=1.0 model.lr=3e-4 model.discriminator_iter_start=10000 model.perceptual_weight=4 model.image_gan_weight=1 model.video_gan_weight=1 model.gan_feat_weight=4 model.batch_size=2 model.n_codes=16384 model.accumulate_grad_batches=1

The Error Message: Traceback (most recent call last): File "train_vqgan.py", line 20, in run train_dataset, val_dataset, sampler = get_dataset(cfg)

File "home/medicaldiffusion-master/train/get_dataset.py", line 16, in get_dataset root_dir=cfg.dataset.root_dir, imgtype=cfg.dataset.imgtype, train=True, severity=cfg.dataset.severity, resize=cfg.dataset.resize) omegaconf.errors.ConfigAttributeError: Key 'severity' is not in struct full_key: dataset.severity object_type=dict Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

Hi, same error here, can you tell me the solution? And my Brats dataset like this:
image

@zhao9chen99999
Copy link

zhao9chen99999 commented Sep 18, 2024 via email

1 similar comment
@zhao9chen99999
Copy link

zhao9chen99999 commented Dec 12, 2024 via email

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

9 participants