HS-OVSeg

Paper

Trained LoRA and pixel Router weights for HS-OVSeg. Run text-prompted segmentation on your images without additional training or training datasets.

1. Install

Follow the code repository's installation steps. It uses Python 3.12+, CUDA-enabled PyTorch 2.7+, and the pinned SAM3 revision.

2. Download weights

Request the original SAM3 foundation checkpoint from the official provider and save it as checkpoints/sam3.pt.

hf download WeiHuang95/HS-OVSeg best-inference.pt best-inference.json \
  --local-dir checkpoints/sam3_multilevel

best-inference.pt is a 36.7 MiB adaptation checkpoint. It contains all 762 LoRA/Router tensors from the selected trained best.pt (epoch 21, step 131250). It excludes the SAM3 foundation weights, optimizer, scheduler, and machine paths. It is not a standalone SAM3 model or a resume-training checkpoint.

3. Zero-shot inference

From the code repository root:

python -m ovrs_segmentation.inference.sam3_multilevel \
  --input /path/to/image.tif --prompt building --prompt tree \
  --checkpoint checkpoints/sam3_multilevel/best-inference.pt \
  --sam3-checkpoint checkpoints/sam3.pt \
  --device cuda --precision bf16 --no-overlay-only \
  --output-dir outputs/inference

Replace the image path and text prompts. The command saves segmentation masks, overlays, and prediction metadata. No additional fine-tuning or training-data download is needed.

SHA-256: 1b6ed45b2d985ec7d42597285db9b245328f7f4361b4839952d8b4bc1ffeb8d6. Full checkpoint metadata is in best-inference.json.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for WeiHuang95/HS-OVSeg

Base model

facebook/sam3
Adapter
(6)
this model

Paper for WeiHuang95/HS-OVSeg