sam3 icon indicating copy to clipboard operation
sam3 copied to clipboard

tutorials for finetuning sam3

Open foreverzzx opened this issue 1 month ago • 3 comments

Is there any one finetuning sam3 successfully with point and box prompts? Can you share the tutorials for preparing datasets. Thank you very much.

foreverzzx avatar Dec 10 '25 14:12 foreverzzx

1+

BahMoh avatar Dec 14 '25 18:12 BahMoh

+1. I found the same thing. The current official fine-tuning setup only loads text prompts into the batch, and I couldn't find a configuration to enable box or point prompts. I'm also looking forward to an answer on this.

megumi-qg avatar Dec 15 '25 08:12 megumi-qg

Perhaps, You can manually provide the input points and input bboxes in COCO_FROM_JSON class of coco_json_loader.py (if you train the model using image.)

See the "loadQueriesAndAnnotationsFromDatapoint" in COCO_FROM_JSON.

Or, if you want to provide the input prompts by randomly sampling them from gt masks, I think you can use the transform class "RandomGeometricInputsAPI" in transforms/point_sampling.py

yhy258 avatar Dec 16 '25 11:12 yhy258