{"id":46305,"library":"sam3","title":"SAM3","description":"Implementation of SAM3 (Segment Anything Model 3) from Facebook Research. Version 0.1.4, early release with frequent updates.","status":"active","version":"0.1.4","language":"python","source_language":"en","source_url":"https://github.com/facebookresearch/sam3","tags":["segmentation","segment-anything","computer-vision","torch"],"install":[{"cmd":"pip install sam3","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"PyTorch backend","package":"torch","optional":false},{"reason":"Image handling","package":"pillow","optional":false},{"reason":"Array operations","package":"numpy","optional":false}],"imports":[{"note":"Import path changed from underscore to dot notation in v0.1.3","wrong":"from sam3.predictor import Sam3Predictor","symbol":"Sam3Predictor","correct":"from sam3 import Sam3Predictor"}],"quickstart":{"code":"from sam3 import Sam3Predictor\nimport torch\n\npredictor = Sam3Predictor(\n    model_type=\"sam3_huge\",\n    checkpoint=\"sam3_huge.pth\",\n    device=\"cuda\" if torch.cuda.is_available() else \"cpu\"\n)\nprint(\"SAM3 predictor ready\")","lang":"python","description":"Initialize SAM3 predictor with model type and checkpoint."},"warnings":[{"fix":"Use `from sam3 import Sam3Predictor`.","message":"v0.1.3 changed the predictor import path. Old code using `from sam3.predictor import Sam3Predictor` will break.","severity":"breaking","affected_versions":"v0.1.0 to v0.1.2"},{"fix":"Download checkpoint from https://github.com/facebookresearch/sam3/releases.","message":"Checkpoint files are not bundled; must be downloaded separately from GitHub releases. Code may fail silently if checkpoint is missing.","severity":"breaking","affected_versions":"all"},{"fix":"Pass `device=\"cuda\"` explicitly or check `torch.cuda.is_available()`.","message":"Device fallback: CPU inference is extremely slow. Always use CUDA if available.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.1.4':13 '3':8 'anyth':6,22 'comput':24 'computer-vis':23 'earli':14 'facebook':10 'frequent':17 'implement':2 'model':7 'releas':15 'research':11 'sam3':1,4 'segment':5,19,21 'segment-anyth':20 'torch':26 'updat':18 'version':12 'vision':25","created_at":"2026-06-07T12:59:16.915056+00:00","updated_at":"2026-06-07T12:59:16.915056+00:00","problems":{"verify_error":"/tmp/tmpw2dwsij9/venv/lib/python3.12/site-packages/torch/cuda/__init__.py:187: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 12080). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/i"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/facebookresearch/sam3","github":"https://github.com/facebookresearch/sam3","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"install_fail","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-09","install_tag":null}}