Image-to-3D
MLX
Safetensors
SAM 3D Objects
apple-silicon
sam-3d
3d-reconstruction
gaussian-splatting
mesh
glb
Instructions to use appautomaton/sam-3d-objects-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use appautomaton/sam-3d-objects-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir sam-3d-objects-mlx appautomaton/sam-3d-objects-mlx
- SAM 3D Objects
How to use appautomaton/sam-3d-objects-mlx with SAM 3D Objects:
from inference import Inference, load_image, load_single_mask from huggingface_hub import hf_hub_download path = hf_hub_download("appautomaton/sam-3d-objects-mlx", "pipeline.yaml") inference = Inference(path, compile=False) image = load_image("path_to_image.png") mask = load_single_mask("path_to_mask.png", index=14) output = inference(image, mask) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
| { | |
| "items": [ | |
| { | |
| "kind": "config", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/ss_generator.yaml", | |
| "role": "ss_generator", | |
| "source_path": "weights/sam-3d-objects/checkpoints/ss_generator.yaml", | |
| "source_sha256": null, | |
| "status": "copied", | |
| "tensor_count": null | |
| }, | |
| { | |
| "kind": "config", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/slat_generator.yaml", | |
| "role": "slat_generator", | |
| "source_path": "weights/sam-3d-objects/checkpoints/slat_generator.yaml", | |
| "source_sha256": null, | |
| "status": "copied", | |
| "tensor_count": null | |
| }, | |
| { | |
| "kind": "config", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/ss_decoder.yaml", | |
| "role": "ss_decoder", | |
| "source_path": "weights/sam-3d-objects/checkpoints/ss_decoder.yaml", | |
| "source_sha256": null, | |
| "status": "copied", | |
| "tensor_count": null | |
| }, | |
| { | |
| "kind": "config", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/slat_decoder_gs.yaml", | |
| "role": "slat_decoder_gs", | |
| "source_path": "weights/sam-3d-objects/checkpoints/slat_decoder_gs.yaml", | |
| "source_sha256": null, | |
| "status": "copied", | |
| "tensor_count": null | |
| }, | |
| { | |
| "kind": "config", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/slat_decoder_mesh.yaml", | |
| "role": "slat_decoder_mesh", | |
| "source_path": "weights/sam-3d-objects/checkpoints/slat_decoder_mesh.yaml", | |
| "source_sha256": null, | |
| "status": "copied", | |
| "tensor_count": null | |
| }, | |
| { | |
| "kind": "checkpoint", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/ss_generator.safetensors", | |
| "role": "ss_generator", | |
| "source_path": "weights/sam-3d-objects/checkpoints/ss_generator.ckpt", | |
| "source_sha256": null, | |
| "status": "exists", | |
| "tensor_count": 1741 | |
| }, | |
| { | |
| "kind": "checkpoint", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/slat_generator.safetensors", | |
| "role": "slat_generator", | |
| "source_path": "weights/sam-3d-objects/checkpoints/slat_generator.ckpt", | |
| "source_sha256": null, | |
| "status": "exists", | |
| "tensor_count": 1225 | |
| }, | |
| { | |
| "kind": "checkpoint", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/ss_decoder.safetensors", | |
| "role": "ss_decoder", | |
| "source_path": "weights/sam-3d-objects/checkpoints/ss_decoder.ckpt", | |
| "source_sha256": null, | |
| "status": "exists", | |
| "tensor_count": 74 | |
| }, | |
| { | |
| "kind": "checkpoint", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/slat_decoder_gs.safetensors", | |
| "role": "slat_decoder_gs", | |
| "source_path": "weights/sam-3d-objects/checkpoints/slat_decoder_gs.ckpt", | |
| "source_sha256": null, | |
| "status": "exists", | |
| "tensor_count": 101 | |
| }, | |
| { | |
| "kind": "checkpoint", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/slat_decoder_mesh.safetensors", | |
| "role": "slat_decoder_mesh", | |
| "source_path": "weights/sam-3d-objects/checkpoints/slat_decoder_mesh.ckpt", | |
| "source_sha256": null, | |
| "status": "exists", | |
| "tensor_count": 120 | |
| }, | |
| { | |
| "kind": "config", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/slat_decoder_gs_4.yaml", | |
| "role": "slat_decoder_gs_4", | |
| "source_path": "weights/sam-3d-objects/checkpoints/slat_decoder_gs_4.yaml", | |
| "source_sha256": null, | |
| "status": "copied", | |
| "tensor_count": null | |
| }, | |
| { | |
| "kind": "checkpoint", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/slat_decoder_gs_4.safetensors", | |
| "role": "slat_decoder_gs_4", | |
| "source_path": "weights/sam-3d-objects/checkpoints/slat_decoder_gs_4.ckpt", | |
| "source_sha256": null, | |
| "status": "exists", | |
| "tensor_count": 101 | |
| }, | |
| { | |
| "kind": "config", | |
| "output_path": "weights/sam-3d-objects-mlx/checkpoints/pipeline.yaml", | |
| "role": "pipeline", | |
| "source_path": "weights/sam-3d-objects/checkpoints/pipeline.yaml", | |
| "source_sha256": null, | |
| "status": "rewritten", | |
| "tensor_count": null | |
| } | |
| ], | |
| "output_pipeline_path": "weights/sam-3d-objects-mlx/checkpoints/pipeline.yaml", | |
| "source_root": "weights/sam-3d-objects" | |
| } |