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

About the Abdominal-CT #15

Open
prehix opened this issue Oct 19, 2023 · 0 comments
Open

About the Abdominal-CT #15

prehix opened this issue Oct 19, 2023 · 0 comments

Comments

@prehix
Copy link

prehix commented Oct 19, 2023

The request of dominal-list is .npz,but the file of Abdominal-CT is nii.But train is fine and test is error:ValueError: Cannot load file containing pickled data when allow_pickle=False.
When I add "allow_pickle=True",the error is
File "Dual-Normalization-main/datasets/dataset.py", line 33, in getitem
image = np.load(image_dir,allow_pickle=True)['image'].astype(np.float32)
File "anaconda3/envs/pytorch/lib/python3.8/site-packages/numpy/lib/npyio.py", line 443, in load
raise pickle.UnpicklingError(
_pickle.UnpicklingError: Failed to interpret file './npz_data/test/t1/DET0000801_avg.nii' as a pickle

What should I do ? And the nii is allowed?
Looking forward to your reply!

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

1 participant