Medical-Transformer icon indicating copy to clipboard operation
Medical-Transformer copied to clipboard

Update utils.py

Open abhishekvermasg opened this issue 3 years ago • 4 comments

'labelcol' is not the folder name as in your readme.md, thus, code break. I changed it to 'label'. Also, the default size you have kept is (128, 128) but if images with the user are not uniform then it is an issue, I have rectified that by resizing the images to (128, 128).

abhishekvermasg avatar Mar 10 '21 15:03 abhishekvermasg

Hi,

Thanks for mentioning the 'labelcol' issue. The datasets used in this work have a labelcol folder. So, I think it is better to change the readme.

Regarding resizing, for Monuseg dataset, we conduct experiments at 512x512 image scale. So, we pass the image size also as an argument. So, I guess it would be better if we provide an argument for resize and then convert all the images to imgsize if resize argument is true, which would make the code more generic rather than resizing everything to 128x128. Would be glad to merge a pull request with that !

jeya-maria-jose avatar Mar 10 '21 15:03 jeya-maria-jose

Hi,The size of the image in the GlaS dataset is (522,775). Does it need to be changed to (128,128) or make some other adjustments

cwpl avatar Mar 26 '21 13:03 cwpl

hello, I want to ask you a question. I have been reporting this error during training. libpng warning: iCCP: known incorrect sRGB profile epoch [0/400], loss:0.2338 libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile epoch [1/400], loss:0.0000 libpng warning: iCCP: known incorrect sRGB profile epoch [2/400], loss:0.0000 libpng warning: iCCP: known incorrect sRGB profile epoch [3/400], loss:0.0000 libpng warning: iCCP: known incorrect sRGB profile epoch [4/400], loss:0.0000 libpng warning: iCCP: known incorrect sRGB profile epoch [5/400], loss:0.0000 libpng warning: iCCP: known incorrect sRGB profile epoch [6/400], loss:0.0000

my loss has been 0 ,What's the matter about the error? Can you provide a processed data set? my email is [email protected] 。 Can I contact you through this email?

123xu223 avatar Sep 19 '21 09:09 123xu223

Hi, author! I would like to know how to conduct the experiment with a 512x512 image ratio in the Monuseg dataset. How did you adjust the image size? I urgently need to solve this problem in my experiment. Looking forward to your reply. Thanks!

deyuehu7 avatar Apr 26 '23 18:04 deyuehu7