-
Notifications
You must be signed in to change notification settings - Fork 12
Question about the preprecessing #2
Comments
The valid label value is 0-6, but there is no image in trainset with label 2. To simplify, you could remap the label or just leave it unchanged. There is no label value 7, you should check your data. |
|
Thanks for your reply. I am still working on the problem of generating the unexcepted pixel value. After reading the
Now the problem happens when there exists the situation in which more than one label have a maximum probability. I do the following experiment: I create two images with pixel value of Is this strange? |
Have you run the model successifully?Did you find the paper or report about this?My wechat is szj_lucky0904. |
@lucky-szj , I do not find any papers about this. In this repo, I only encounter problem in the preprecessing stage. I can run the model successfully. |
|
@phuongchi911 I don't understand your question. Did you download the dataset? The masks, which are saved as images, store label value as pixel intensity, usually ranging from 0 to C-1 with C classes. In this dataset, label value 2 is missing, which means that there is no image labeled as Gleason score 2. |
thanks a lot for the explanation. I think i can understand it now. |
@GWwangshuo GWwangshuo may I ask if u have solved the issue with label 7? I also face the same problem for the two cores that resulting mask have 7. Thank you very much |
@phuongchi911 Actually, this is a bug in SimpleITK/ITK. Check this post You may need to wait for a new release to fix it. Or, you could fix it yourself, you could manually update the undecide label value from applying |
@hubutui wow thanks so much for the fast response. I will try to reinstall the package to see if it works. By the way, there are two 2 final masks that contains 6 (which are converted to 2 after stapling) while the original masks do not contain 6 at all. Do you think it is normal behaviour? Thanks so much for the insights |
@phuongchi911 I don't think reinstall SimpleITK would fix this issue, since there is no new release since then. Actually, you should check sklearn.preprocessing.LabelEncoder, which encodes target labels with value between 0 and n_classes-1. I would use this method if I had known it. |
Hi fyi u can install it again from the webpage provided by some of the one on ur post. The latest package is 2.0 which produces correct results. Thanks so much for pointing out the post. |
When I run the 'preprocess.py', I got a new class 7 which is not in 0 - 6. Is this correct or not? Thanks. Moreover, how long and how many GPU you use to train the PSPNet? Could you please share the trained model for inference? Thanks again.
The text was updated successfully, but these errors were encountered: