Semi-supervised-segmentation-cycleGAN
Semi-supervised-segmentation-cycleGAN copied to clipboard
Channel issue with ACDC dataset
I downloaded the provided ACDC dataset and when I tried to run the code, I got the following error (channels issue)
Traceback (most recent call last):
File "main.py", line 87, in
Any fix for this or do I need to manually edit all the code?
ACDC dataset has only 1 input_channel.
Thus, in "dataloader.py", I add this line after line 383 to append image in 3 channels.
img = Image.open(img_path) img = img.convert('RGB') # <-- added
ACDC dataset has only 1 input_channel.
Thus, in "dataloader.py", I add this line after line 383 to append image in 3 channels.
img = Image.open(img_path) img = img.convert('RGB') # <-- added
I also tried this as a quick and dirty fix. But using thrice the amount of memory isn’t the best thing. Any better option?
ACDC dataset has only 1 input_channel.
Thus, in "dataloader.py", I add this line after line 383 to append image in 3 channels.
img = Image.open(img_path) img = img.convert('RGB') # <-- added
This fix the issue but it show another error when creating one_hot_encodding