Beckschen/TransUNet

.npy.h5 format of test data, key "label" in test data

Opened this issue · 0 comments

Hi, why is the data stored in that format and how?

When I check the test data file say caseslice038, it shows
import h5py

h5_file = 'case0038.npy.h5'

with h5py.File(h5_file, 'r') as hf:
for key in hf.keys():
print(key)

"""""""output"""""""""""""
image
label

BUT when I store 3d volume in h5 format it shows

import nibabel as nib

image_file = '102859_CT_Wb.nii.gz'
image_data = nib.load(image_file).get_fdata()

import h5py

h5_file = '102859.h5'
with h5py.File(h5_file, 'w') as hf:
hf.create_dataset('image', data=image_data, compression='gzip')

"""""output""""""
image

My question is how did you create in .npy.h5 and why test data has key "label"?