MedicineToken / MedSegDiff

Medical Image Segmentation with Diffusion Model
MIT License
1.06k stars 166 forks source link

error in sample #147

Open wzx0720 opened 10 months ago

wzx0720 commented 10 months ago

First of all, thanks for your excellent work! I met a problem that when I run segmentation_sample.py, it only sample and infer 2 images. I wonder how can I solve this problem? Thanks a lot!

amitshakyaymsli commented 4 months ago

if you used the custom_dataset_loader.py file. You should modify the "self.name_list = image[:2]" to "self.name_list = image" similar with the labels.

pedropesserl commented 1 week ago

why is it like that in the code? doesn't seem to make sense to get just the 2 first elements.

wzx0720 commented 1 week ago

why is it like that in the code? doesn't seem to make sense to get just the 2 first elements.

@pedropesserl I think you can try what amitshakyaymsli mentioned before:

if you used the custom_dataset_loader.py file. You should modify the "self.name_list = image[:2]" to "self.name_list = image" similar with the labels.