vanvalenlab / cellSAM

Codebase for "A Foundation Model for Cell Segmentation"
Other
36 stars 7 forks source link

Add option to pass bounding boxes to process_and_segment_image #2

Open ellenemerson opened 5 months ago

ellenemerson commented 5 months ago

It would be great to have an option to pass in bounding boxes to this function. I believe this can be done by allowing a value other than None here.

I believe there is some resizing(rescaling?) of images that are larger than 1k that goes on under the hood. I think the bounding boxes will need to be similarly scaled and/or the expectations will need to be made explicit in some way.