HiLab-git / SSL4MIS

Semi Supervised Learning for Medical Image Segmentation, a collection of literature reviews and code implementations.
MIT License
2.19k stars 387 forks source link

why .h5? #6

Closed seuxiaoge closed 3 years ago

seuxiaoge commented 3 years ago

hello, why is the data in .h5 format?How do I visualize it?

Luoxd1996 commented 3 years ago

Hi, seuxiaoge; just because my personal habit, which saved the processed data as .h5 file. You can read it as NumPy array and plot it by matplotlib or save it as NIfTI data and show it by ITK SNAP. Best wishes; xdluo.

seuxiaoge commented 3 years ago

Traceback (most recent call last): File "E:/code/SSL4MIS-master/code/train_unet_2D_adversarial_network.py", line 283, in train(args, snapshot_path) File "E:/code/SSL4MIS-master/code/train_unet_2D_adversarial_network.py", line 138, in train for i_batch, sampled_batch in enumerate(trainloader): File "D:\Anaconda3\envs\semi\lib\site-packages\torch\utils\data\dataloader.py", line 193, in iter return _DataLoaderIter(self) File "D:\Anaconda3\envs\semi\lib\site-packages\torch\utils\data\dataloader.py", line 469, in init w.start() File "D:\Anaconda3\envs\semi\lib\multiprocessing\process.py", line 105, in start self._popen = self._Popen(self) File "D:\Anaconda3\envs\semi\lib\multiprocessing\context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "D:\Anaconda3\envs\semi\lib\multiprocessing\context.py", line 322, in _Popen return Popen(process_obj) File "D:\Anaconda3\envs\semi\lib\multiprocessing\popen_spawn_win32.py", line 65, in init reduction.dump(process_obj, to_child) File "D:\Anaconda3\envs\semi\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) AttributeError: Can't pickle local object 'train..worker_init_fn'

seuxiaoge commented 3 years ago

what‘s this?

Luoxd1996 commented 3 years ago

I don't know, please make sure your relevant-requirements are right firstly. And then, debug your code carefully. By the way, this repo has been tested many times on Ubuntu20.04, there aren't any bug.

buloseshi commented 1 year ago

hello, why is the data in .h5 format?How do I visualize it? Hi, do you know how to convert a normal data set to h5 format?