zzzqzhou/Dual-Normalization

About the Abdominal-CT

Opened this issue · 0 comments

prehix commented

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!