Open tobimichigan opened 4 years ago
Here are further details:
`--------------------------------------------------------------------------- TypeError Traceback (most recent call last)
The same error occurs on my side too. My initial dataset was in RGB and converted it using ImageMagick to greyscale PNG file.
@muminoff , thanks for your response. I am using the same dataset suggested in the repo. Please could you elaborate further on the workaround this? I mean how to practically handle RGB issue in this case?
@tobimichigan I am not maintainer of this repo. I am also issue-reporter like you. Let's wait what @sdsubhajitdas thinks about this.
@muminoff , thanks for your response. I am using the same dataset suggested in the repo. Please could you elaborate further on the workaround this? I mean how to practically handle RGB issue in this case?
It is possible that information is lost in the RGB downgrade to Grayscale.
A solution could be to retrain the model entirely, ensuring you payed attention to the shape of your new model, wrt rgb channels.
Did anyone solve this issue? I also get the same error! Seems there is something with Pillow library!? I tried with version 7.1 and 8.1 but again the same error!
Hi, I tried running your code but it hangs around the line below with `"unet TypeError: function takes exactly 1 argument (3 given)". I have commented the section. Please kindly advise,
Training process
if TRAIN: unet_model.train() path = os.path.join('saved_models',MODEL_NAME) if SAVE_MODEL else None unet_train_history = unet_classifier.train(EPOCHS,trainloader,mini_batch=100,save_best=path) print(f'Training Finished after {EPOCHS} epoches')
Testing process on test data.
unet_model.eval() unet_score = unet_classifier.test(testloader) #unet TypeError: function takes exactly 1 argument (3 given) print(f'\n\nDice Score {unet_score}')
Dice Score 0.7446110107881675
`