-
Notifications
You must be signed in to change notification settings - Fork 7
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 use EM datasets #18
Comments
Hi @ohcccc, thanks for your interest. Training/prediction process for large 3D stacks such as MitoEM is happening patch-by-patch. To keep things simple I didn't include it in this repo and included instructions for Cityscapes and CVPPP datasets only. |
thank you very much for your reply,Looking forward to your code. |
@wolny I’m really excited to use your code for my research on EM images segmentation using sparse instance labels, and your contribution would be incredibly valuable to my work. Thank you again for your help and looking forward to hearing from you. |
Thank you so much! |
spoco/spoco/datasets/volumetric.py Lines 115 to 128 in 763b9fe
@wolny self.raw[raw_idx] type is numpy.ndarray ? I get an error when I use numpy.ndarray or PIL Image. ‘’‘ File "/media/icml012/HDD/code/spoco/spoco/datasets/volumetric.py", line 121, in getitem raw_patch_transformed = self.base_raw_transform(self.raw[raw_idx]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/icml012/miniconda3/envs/DL/lib/python3.11/site-packages/torchvision/transforms/transforms.py", line 95, in call img = t(img) ^^^^^^ File "/home/icml012/miniconda3/envs/DL/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/icml012/miniconda3/envs/DL/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl return forward_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/icml012/miniconda3/envs/DL/lib/python3.11/site-packages/torchvision/transforms/transforms.py", line 720, in forward return F.hflip(img) ^^^^^^^^^^^^ File "/home/icml012/miniconda3/envs/DL/lib/python3.11/site-packages/torchvision/transforms/functional.py", line 682, in hflip return F_pil.hflip(img) ^^^^^^^^^^^^^^^^ File "/home/icml012/miniconda3/envs/DL/lib/python3.11/site-packages/torchvision/transforms/_functional_pil.py", line 54, in hflip raise TypeError(f"img should be PIL Image. Got {type(img)}") TypeError: img should be PIL Image. Got <class 'numpy.ndarray'> ’‘’ |
HI,thanks for sharing your impressive code.
I've been working on EM images segmentation using sparse instance label lately. I want to follow your work. Could you share codes about MitoEM-R with me?
@wolny
The text was updated successfully, but these errors were encountered: