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

0000 Additional issues #2616

Open
Batwan01 opened this issue Nov 22, 2024 · 2 comments
Open

0000 Additional issues #2616

Batwan01 opened this issue Nov 22, 2024 · 2 comments
Assignees

Comments

@Batwan01
Copy link

Batwan01 commented Nov 22, 2024

Hello "nnUNet_plan_and_preprocess -t 1 --verify_dataset_integrity" An error occurred while using this command.

dataset.json
image

image

rep

image

terminal

image

Both json and rep are in the 0000_0000 format, but when you enter the nnUNet_plan_and_preprocess -t 1 --verify_dataset_integrity command, a problem occurs because it is looking for a file with 0000_0000 with 0000 added.

AssertionError: some image files are missing for case case_0000_0000. Expected files:

['/data/ephemeral/home/nnUNet_raw_data_base/nnUNet_raw_data/Task001_HandBone/imagesTr/case_0000_0000_0000.nii.gz']

@Batwan01
Copy link
Author

#expected_image_files = [join(folder, "imagesTr", c + "_%04.0d.nii.gz" % i) for i in range(num_modalities)]

Expect_image_files = [join(folder, "imagesTr", c + ".nii.gz") for i in range(num_modalities)]

I changed it and it works!

@Batwan01
Copy link
Author

Batwan01 commented Nov 23, 2024

utils.py

for mod in range(num_modalities):
#cur_pat.append(join(base_folder_splitted, "imagesTr", tr['image'].split("/")[-1][:-7] +
# "_%04.0d.nii.gz" % mod))
cur_pat.append(join(base_folder_splitted, "imagesTr", tr['image'].split("/")[-1][:-7] + ".nii.gz"))

After modifying the contents of _%04.0d.nii.gz, even the train worked properly.

I wonder what part I made a mistake in

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