Views
No views yet
| File | Description |
|---|---|
sam3.safetensors | Model weights (safetensors format, converted from official .pt) |
LICENSE | SAM License (required for redistribution) |
sam3.safetensors in this repo is converted directly from the official sam3.pt checkpoint using:1import torch
2from safetensors.torch import save_file
3
4state_dict = torch.load("sam3.pt", map_location="cpu")
5save_file(state_dict, "sam3.safetensors")detector.*, tracker.*). Do not use the HuggingFace Transformers-format safetensors from facebook/sam3 — those have different key names (detector_model.*) and are incompatible with build_sam3_video_model().1# With the official sam3 package
2pip install sam3
3
4from sam3.model_builder import build_sam3_image_model
5model = build_sam3_image_model(checkpoint_path="sam3.safetensors")