cvlab-stonybrook / SAMPath

Repository for "SAM-Path: A Segment Anything Model for Semantic Segmentation in Digital Pathology" (MedAGI2023, MICCAI2023 workshop)
30 stars 6 forks source link

two class #20

Closed 06Liz closed 3 weeks ago

06Liz commented 1 month ago

How can I use my dataset to train a model of one class?

jingweizhang-xyz commented 1 month ago

Just like what we do with the CRAG dataset, treat all other pixels as background. You can also check #15 and #16 for more details on how we process them.

06Liz commented 1 month ago

My dataset has only one class.What should I do preprocess?

jingweizhang-xyz commented 1 month ago

Crop/resize them into 1024x1024 patches and label background as 0, your class as 1. Follow the CRAG configs.