cvlab-stonybrook / SAMPath

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

two class #20

Open 06Liz opened 1 day ago

06Liz commented 1 day ago

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

jingweizhang-xyz commented 1 day 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 21 hours ago

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

jingweizhang-xyz commented 11 hours ago

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