meta / sam-2

SAM 2: Segment Anything v2 (for Images)

replicate.com
Total runs: 11.5K
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Github
Model's Last Updated: July 31 2024

Introduction of sam-2

Model Details of sam-2

Readme

✨SAM 2: Segment Anything v2 for Images and Videos🎥

NOTE: Note: Currently, we only support image inputs (not video yet) and exclusively offer the large variant of the model.

About

Implementation of SAM 2 , a model for segmenting objects in images and videos using various prompts.

Limitations
  • Performance may vary depending on image/video quality and complexity.
  • Very fast or complex motions in videos might be challenging.
  • Higher resolutions provide more detail but require more processing time.

SAM 2 is a 🔥 model developed by Meta AI Research . It excels at segmenting objects in both images and videos with various types of prompts.

Core Model

model architecture
An overview of the SAM 2 framework.

SAM 2 uses a transformer architecture with streaming memory for real-time video processing. It builds on the original SAM model, extending its capabilities to video.

For more technical details, check out the Research paper .

Safety

⚠️ Users should be aware of potential ethical implications: - Ensure you have the right to use input images and videos, especially those featuring identifiable individuals. - Be responsible about generated content to avoid potential misuse. - Be cautious about using copyrighted material as inputs without permission.

Support

All credit goes to the Meta AI Research team

Citation
@article{ravi2024sam2,
  title={SAM 2: Segment Anything in Images and Videos},
  author={Ravi, Nikhila and Gabeur, Valentin and Hu, Yuan-Ting and Hu, Ronghang and Ryali, Chaitanya and Ma, Tengyu and Khedr, Haitham and R{\"a}dle, Roman and Rolland, Chloe and Gustafson, Laura and Mintun, Eric and Pan, Junting and Alwala, Kalyan Vasudev and Carion, Nicolas and Wu, Chao-Yuan and Girshick, Ross and Doll{\'a}r, Piotr and Feichtenhofer, Christoph},
  journal={arXiv preprint},
  year={2024}
}

Pricing of sam-2 replicate.com

Run time and cost

This model costs approximately $0.015 to run on Replicate, or 66 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker .

This model runs on Nvidia A40 (Large) GPU hardware . Predictions typically complete within 21 seconds.

Runs of meta sam-2 on replicate.com

11.5K
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About sam-2 replicate.com Model

sam-2 replicate.com

sam-2 replicate.com is an AI model on replicate.com that provides sam-2's model effect (SAM 2: Segment Anything v2 (for Images)), which can be used instantly with this meta sam-2 model. replicate.com supports a free trial of the sam-2 model, and also provides paid use of the sam-2. Support call sam-2 model through api, including Node.js, Python, http.

sam-2 replicate.com Url

https://replicate.com/meta/sam-2

meta sam-2 online free

sam-2 replicate.com is an online trial and call api platform, which integrates sam-2's modeling effects, including api services, and provides a free online trial of sam-2, you can try sam-2 online for free by clicking the link below.

meta sam-2 online free url in replicate.com:

https://replicate.com/meta/sam-2

sam-2 install

sam-2 is an open source model from GitHub that offers a free installation service, and any user can find sam-2 on GitHub to install. At the same time, replicate.com provides the effect of sam-2 install, users can directly use sam-2 installed effect in replicate.com for debugging and trial. It also supports api for free installation.

sam-2 install url in replicate.com:

https://replicate.com/meta/sam-2

Url of sam-2

Provider of sam-2 replicate.com

Other API from meta

replicate

An 8 billion parameter language model from Meta, fine tuned for chat completions

Total runs: 353.0M
Run Growth: 0
Growth Rate: 0.00%
Updated:April 18 2024
replicate

A 70 billion parameter language model from Meta, fine tuned for chat completions

Total runs: 149.0M
Run Growth: 0
Growth Rate: 0.00%
Updated:April 18 2024
replicate

Base version of Llama 3, an 8 billion parameter language model from Meta.

Total runs: 50.8M
Run Growth: 0
Growth Rate: 0.00%
Updated:April 18 2024
replicate

A 7 billion parameter language model from Meta, fine tuned for chat completions

Total runs: 17.5M
Run Growth: 0
Growth Rate: 0.00%
Updated:November 02 2023
replicate

A 70 billion parameter language model from Meta, fine tuned for chat completions

Total runs: 9.2M
Run Growth: 0
Growth Rate: 0.00%
Updated:September 13 2023
replicate

Meta's flagship 405 billion parameter language model, fine-tuned for chat completions

Total runs: 5.2M
Run Growth: 0
Growth Rate: 0.00%
Updated:July 23 2024
replicate

A 13 billion parameter language model from Meta, fine tuned for chat completions

Total runs: 4.8M
Run Growth: 0
Growth Rate: 0.00%
Updated:September 13 2023
replicate

Generate music from a prompt or melody

Total runs: 2.4M
Run Growth: 0
Growth Rate: 0.00%
Updated:March 28 2024
replicate

Base version of Llama 3, a 70 billion parameter language model from Meta.

Total runs: 825.5K
Run Growth: 0
Growth Rate: 0.00%
Updated:April 18 2024
replicate

A llama-3 based moderation and safeguarding language model

Total runs: 733.3K
Run Growth: 0
Growth Rate: 0.00%
Updated:May 08 2024
replicate

Base version of Llama 2 7B, a 7 billion parameter language model

Total runs: 651.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 13 2023
replicate

Base version of Llama 2, a 70 billion parameter language model from Meta.

Total runs: 351.9K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 13 2023
replicate

Base version of Llama 2 13B, a 13 billion parameter language model

Total runs: 201.7K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 13 2023
replicate

A 34 billion parameter Llama tuned for coding and conversation

Total runs: 154.7K
Run Growth: 0
Growth Rate: 0.00%
Updated:January 09 2024
replicate

A 13 billion parameter Llama tuned for code completion

Total runs: 112.4K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 29 2023
replicate

A 7 billion parameter Llama tuned for coding and conversation

Total runs: 65.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:January 09 2024
replicate

A 13 billion parameter Llama tuned for coding and conversation

Total runs: 46.8K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 07 2023
replicate

A Llama-3.1-8B pretrained model, fine-tuned for content safety classification

Total runs: 31.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:December 21 2024
replicate

Detects any class given class names

Total runs: 27.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 29 2022
replicate

Instance-Conditioned GAN

Total runs: 26.7K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 25 2021
replicate

A 70 billion parameter Llama tuned for coding and conversation

Total runs: 21.9K
Run Growth: 0
Growth Rate: 0.00%
Updated:January 31 2024
replicate

A 7 billion parameter Llama tuned for coding and conversation

Total runs: 15.4K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 07 2023
replicate

A 17 billion parameter model with 128 experts

Total runs: 11.2K
Run Growth: 0
Growth Rate: 0.00%
Updated:April 06 2025
replicate

A 34 billion parameter Llama tuned for coding and conversation

Total runs: 10.0K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 26 2023
replicate

A 34 billion parameter Llama tuned for coding with Python

Total runs: 6.5K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 29 2023
replicate

A 13 billion parameter Llama tuned for coding with Python

Total runs: 3.9K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 07 2023
replicate

A 7 billion parameter Llama tuned for coding with Python

Total runs: 3.8K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 07 2023
replicate

SAM 2: Segment Anything v2 (for videos)

Total runs: 2.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 14 2024
replicate

Cut and Learn for unsupervised object detection and instance segmentation

Total runs: 2.3K
Run Growth: 0
Growth Rate: 0.00%
Updated:February 06 2023
replicate

A 70 billion parameter Llama tuned for coding with Python

Total runs: 1.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:January 30 2024
replicate

Masked-attention Mask Transformer for Universal Image Segmentation

Total runs: 658
Run Growth: 0
Growth Rate: 0.00%
Updated:February 21 2022
replicate

Supervised Weakly from hashtAGs

Total runs: 294
Run Growth: 0
Growth Rate: 0.00%
Updated:January 23 2022
replicate

A Single Model for Many Visual Modalities

Total runs: 247
Run Growth: 0
Growth Rate: 0.00%
Updated:January 30 2022
replicate

A Llama-3.2-11B pretrained model, fine-tuned for content safety classification

Total runs: 153
Run Growth: 0
Growth Rate: 0.00%
Updated:December 24 2024
replicate

A 7B parameter Llama 2-based input-output safeguard model

Total runs: 19
Run Growth: 0
Growth Rate: 0.00%
Updated:December 21 2024
replicate

A 17 billion parameter model with 16 experts

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 06 2025