ziqi-jin/finetune-anything
A fine-tuning framework for the Segment Anything Model targeting semantic segmentation, matting, and detection tasks.

This tool encapsulates the three core components of SAM — Image Encoder Adapter, Prompt Encoder Adapter, and Mask Decoder Adapter — to enable task-specific fine-tuning. Users supply datasets and specify supported tasks to obtain trained models, with configurable learning rates and weight decay for unfrozen parameters. The framework supports semantic segmentation, matting, instance segmentation, and detection tasks with corresponding dataset loaders.