-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to convert instance-level masks to semantic masks in the CRAG dataset? #23
Comments
Simply regard all instances as one class: gland and regard the rest region as background. |
Thank you!But I still have some questions. 1、The paper of CRAG mentions both healthy and malignant glands, but it isn’t entirely clear if there’s a need to further differentiate these regions within each gland. 2、If additional differentiation within glands is recommended, could you please provide guidance or any established criteria for such annotations? Understanding this distinction would be very helpful for correctly interpreting and using the mask labels in the dataset. Thank you for your assistance! |
|
|
Looks ok, you can have a try. |
|
For 1, it should be correct, we use an extra class in this case. |
so in the trainset,the fold id how to make?
for exemple,my trainset have 2claas ,background and cell,so fold-id for trainset is what ?
…---Original---
From: "Jingwei ***@***.***>
Date: Tue, Dec 3, 2024 06:14 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [cvlab-stonybrook/SAMPath] How to convert instance-level masks tosemantic masks in the CRAG dataset? (Issue #23)
For 1, it should be correct, we use an extra class in this case.
For 2, fold==-1 means this sample is in the test set, "val_fold_id" in the cfg file defines the validation set. E.g. default, val_fold_id is 0. All samples with fold==0 are the validation set and all other folds are the training set.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
You can set it to 1 for simplicity. But we assume that you have a validation dataset which fold-id is 0. Not sure if it can run without a validation set. You may need to change image_mask_dataset.py |
I am currently working with the CRAG dataset, which provides instance-level segmentation masks of adenocarcinoma and benign glands in colon cancer.
I would like to know how to convert these instance-level masks to semantic masks in your experiment.
Could you provide some guidance or suggestions on how to achieve this?
Thank you!
The text was updated successfully, but these errors were encountered: