SAM 2: Segment Anything in Images and Videos
Paper • 2408.00714 • Published • 123
text stringlengths 0 754 |
|---|
THIRD PARTY SOFTWARE NOTICES AND INFORMATION |
Do Not Translate or Localize |
This software incorporates material from third parties. Microsoft makes certain |
open source code available at http://3rdpartysource.microsoft.com, or you may |
send a check or money order for US $5.00, including the product name, the open |
source component name, and version number, to: |
Source Code Compliance Team |
Microsoft Corporation |
One Microsoft Way |
Redmond, WA 98052 |
USA |
Notwithstanding any other terms, you may reverse engineer this software to the |
extent required to debug changes to any libraries licensed under the GNU Lesser |
General Public License. |
_____ |
Intel Math Kernel Library (Intel MKL) |
Intel Simplified Software License (Version April 2018) |
Copyright (c) 2018 Intel Corporation. |
Use and Redistribution. You may use and redistribute the software (the “Software”), without modification, |
provided the following conditions are met: |
* Redistributions must reproduce the above copyright notice and the following terms of use in the Software |
and in the documentation and/or other materials provided with the distribution. |
* Neither the name of Intel nor the names of its suppliers may be used to endorse or promote products |
derived from this Software without specific prior written permission. |
* No reverse engineering, decompilation, or disassembly of this Software is permitted. |
Limited patent license. Intel grants you a world-wide, royalty-free, non-exclusive license under patents it now |
or hereafter owns or controls to make, have made, use, import, offer to sell and sell (“Utilize”) this Software, |
but solely to the extent that any such patent is necessary to Utilize the Software alone. The patent license |
shall not apply to any combinations which include this software. No hardware per se is licensed hereunder. |
Third party and other Intel programs. “Third Party Programs” are the files listed in the “third-party-programs.txt” |
text file that is included with the Software and may include Intel programs under separate license terms. |
Third Party Programs, even if included with the distribution of the Materials, are governed by |
separate license terms and those license terms solely govern your use of those programs. |
DISCLAIMER. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS |
FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT ARE DISCLAIMED. THIS SOFTWARE IS |
NOT INTENDED FOR USE IN SYSTEMS OR APPLICATIONS WHERE FAILURE OF THE SOFTWARE |
MAY CAUSE PERSONAL INJURY OR DEATH AND YOU AGREE THAT YOU ARE FULLY RESPONSIBLE FOR ANY |
CLAIMS, COSTS, DAMAGES, EXPENSES, AND ATTORNEYS’ FEES ARISING OUT OF ANY SUCH USE, |
EVEN IF ANY CLAIM ALLEGES THAT INTEL WAS NEGLIGENT REGARDING THE DESIGN OR MANUFACTURE OF |
THE MATERIALS. |
LIMITATION OF LIABILITY. IN NO EVENT WILL INTEL BE LIABLE FOR ANY DIRECT, INDIRECT, |
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY |
OF SUCH DAMAGE. YOU AGREE TO INDEMNIFY AND HOLD INTEL HARMLESS AGAINST ANY CLAIMS |
AND EXPENSES RESULTING FROM YOUR USE OR UNAUTHORIZED USE OF THE SOFTWARE. |
No support. Intel may make changes to the Software, at any time without notice, and is not obligated to |
support, update or provide training for the Software. |
Termination. Intel may terminate your right to use the Software in the event of your breach of this Agreement |
and you fail to cure the breach within a reasonable period of time. |
Feedback. Should you provide Intel with comments, modifications, corrections, enhancements or other input |
(“Feedback”) related to the Software Intel will be free to use, disclose, reproduce, license or otherwise |
distribute or exploit the Feedback in its sole discretion without any obligations or restrictions of any kind, |
including without limitation, intellectual property rights or licensing obligations. |
Compliance with laws. You agree to comply with all relevant laws and regulations governing your use, |
transfer, import or export (or prohibition thereof) of the Software. |
Governing law. All disputes will be governed by the laws of the United States of America and the State of |
Delaware without reference to conflict of law principles and subject to the exclusive jurisdiction of the state or |
federal courts sitting in the State of Delaware, and each party agrees that it submits to the personal |
jurisdiction and venue of those courts and waives any objections. The United Nations Convention on |
Contracts for the International Sale of Goods (1980) is specifically excluded and will not apply to the |
Software. |
*Other names and brands may be claimed as the property of others. |
_____ |
protocolbuffers/protobuf |
Copyright 2008 Google Inc. All rights reserved. |
Redistribution and use in source and binary forms, with or without |
modification, are permitted provided that the following conditions are |
met: |
* Redistributions of source code must retain the above copyright |
This repository hosts pre-trained Deep Learning models in ONNX and PyTorch (.pt) formats used by the pliman (Plant Image Analysis) R package for:
| Model | Filename | Size | Input Size | Task / Architecture | Description |
|---|---|---|---|---|---|
u2netp |
u2netp.onnx |
4.4 MB | 320×320 | Salient Object Detection (U2-Net Portable) | Ultra-lightweight and fast, ideal for quick runs on CPU. |
silueta |
silueta.onnx |
42.1 MB | 320×320 | Compact Matting (U2-Net variant) | High accuracy with low latency for edge & CPU execution. |
u2net |
u2net.onnx |
167.8 MB | 320×320 | Salient Object Detection (U2-Net Full) | Classic robust multi-scale salient object segmentation. |
rmbg-1.4 |
rmbg-1.4.onnx |
168.0 MB | 1024×1024 | Background Removal (BRIA AI RMBG 1.4) | High-accuracy foreground segmentation on 1024×1024 images. |
isnet-general-use |
isnet-general-use.onnx |
170.4 MB | 1024×1024 | Boundary Matting (DIS / IS-Net) | Crisp contours; excellent for complex leaf borders and lesions. |
birefnet-lite |
birefnet-lite.onnx |
213.6 MB | 1024×1024 | Dichotomous Image Segmentation (BiRefNet Lite) | High-resolution bilateral reference network for fine structures. |
ben2 |
ben2.onnx |
212.6 MB | 1024×1024 | Boundary-Aware Extraction (BEN2 Base) | Crisp sub-pixel boundaries; excellent on leaves, seeds and roots. |
withoutbg |
withoutbg.onnx |
433.4 MB | 448×448 | Depth-Aware Matting (ConvNeXt + DepthAnything) | Robust open-weights matting with depth guidance. |
sam2.1 (encoder) |
sam2.1.encoder.onnx |
104.4 MB | 1024×1024 | Foundation Segmentation (Meta AI SAM 2.1 Hiera-Tiny) | Image feature extraction backbone for promptable segmentation. |
sam2.1 (decoder) |
sam2.1.decoder.onnx |
15.8 MB | Dynamic | Mask Decoder (Meta AI SAM 2.1) | Generates crisp instance masks from bounding box prompts. |
grounding-dino |
groundingdino-tiny.onnx |
194.4 MB | 800×800 | Open-Vocabulary Object Detection (Grounding DINO) | Text-prompted zero-shot bounding box detector. |
vocab |
vocab.txt |
0.2 MB | — | BERT Vocabulary | Tokenizer vocabulary used for Grounding DINO text prompts. |
sam3.1 |
sam3.1.onnx |
868.1 MB | 1024×1024 | Concept-driven Segmentation (SAM 3.1) | Next-generation foundation image segmentation model. |
rmbg-2.0 |
rmbg-2.0.onnx |
976.9 MB | 1024×1024 | Next-Gen Matting (BRIA AI RMBG 2.0 / BiRefNet) | State-of-the-art background removal for high-detail inputs. |
depth-anything-v2 |
depth-anything-v2-small.onnx |
94.5 MB | 518×518 | Monocular Depth Estimation (Depth Anything V2 Small) | Dense relative 3D depth estimation from a single image. |
dinov2 |
dinov2-vits14.onnx |
84.4 MB | 518×518 | Vision Foundation Model (Meta AI DINOv2 ViT-S/14) | Self-supervised dense patch embeddings & semantic PCA mapping. |
stardist |
stardist-dsb2018.onnx |
5.6 MB | 256×256 | Star-Convex Object Detection (StarDist DSB 2018) | Star-convex polygon detection for round/overlapping objects, seeds, and cells. |
realesrgan-compact |
realesrgan-compact.onnx |
4.6 MB | 256×256 | Generative 4× Super-Resolution (Real-ESRGAN Compact) | Fast 4× image upscaling with edge preservation and tiled processing. |
| Model | Filename | Size | Input Size | Task / Architecture | Description |
|---|---|---|---|---|---|
yolo26n |
yolo26n.onnx |
9.5 MB | 640×640 | Real-Time Object Detection (YOLO26 Nano) | End-to-end 80 COCO classes object detection; ultra-fast CPU inference. |
yolo26s |
yolo26s.onnx |
36.5 MB | 640×640 | Real-Time Object Detection (YOLO26 Small) | Balanced real-time object detector. |
yolo26m |
yolo26m.onnx |
78.2 MB | 640×640 | Real-Time Object Detection (YOLO26 Medium) | Medium-size high-accuracy object detector. |
yolo26l |
yolo26l.onnx |
95.0 MB | 640×640 | Real-Time Object Detection (YOLO26 Large) | High-capacity object detection. |
yolo26x |
yolo26x.onnx |
212.9 MB | 640×640 | Real-Time Object Detection (YOLO26 XLarge) | Maximum precision object detector for complex scenes. |
yolo26n-seg |
yolo26n-seg.onnx |
10.7 MB | 640×640 | Real-Time Instance Segmentation (YOLO26 Nano Seg) | Fast instance segmentation with continuous bilinear mask interpolation. |
yolo26s-seg |
yolo26s-seg.onnx |
40.0 MB | 640×640 | Real-Time Instance Segmentation (YOLO26 Small Seg) | Balanced instance segmentation. |
yolo26m-seg |
yolo26m-seg.onnx |
90.2 MB | 640×640 | Real-Time Instance Segmentation (YOLO26 Medium Seg) | High-precision instance masks and morphological metrics. |
yolo26l-seg |
yolo26l-seg.onnx |
107.1 MB | 640×640 | Real-Time Instance Segmentation (YOLO26 Large Seg) | Large-capacity instance segmentation. |
yolo26x-seg |
yolo26x-seg.onnx |
240.0 MB | 640×640 | Real-Time Instance Segmentation (YOLO26 XLarge Seg) | Highest fidelity instance segmentation and boundary precision. |
yolo26n-pose |
yolo26n-pose.onnx |
11.6 MB | 640×640 | Real-Time Pose Estimation (YOLO26 Nano Pose) | 17 COCO anatomical keypoints and skeleton limb connections. |
yolo26s-pose |
yolo26s-pose.onnx |
39.9 MB | 640×640 | Real-Time Pose Estimation (YOLO26 Small Pose) | Balanced speed/precision keypoint detection. |
yolo26m-pose |
yolo26m-pose.onnx |
82.6 MB | 640×640 | Real-Time Pose Estimation (YOLO26 Medium Pose) | Medium pose estimation model. |
yolo26l-pose |
yolo26l-pose.onnx |
99.4 MB | 640×640 | Real-Time Pose Estimation (YOLO26 Large Pose) | Large-capacity pose estimation model. |
yolo26x-pose |
yolo26x-pose.onnx |
220.0 MB | 640×640 | Real-Time Pose Estimation (YOLO26 XLarge Pose) | Maximum accuracy pose estimation for challenging poses and occlusion. |
yolo26n-cls |
yolo26n-cls.onnx |
10.8 MB | 224×224 | Image Classification (YOLO26 Nano Cls) | Fast 1,000-class ImageNet classification with Softmax probabilities. |
yolo26s-cls |
yolo26s-cls.onnx |
25.7 MB | 224×224 | Image Classification (YOLO26 Small Cls) | Balanced ImageNet classification. |
yolo26m-cls |
yolo26m-cls.onnx |
44.4 MB | 224×224 | Image Classification (YOLO26 Medium Cls) | High accuracy ImageNet classification. |
yolo26l-cls |
yolo26l-cls.onnx |
53.9 MB | 224×224 | Image Classification (YOLO26 Large Cls) | Large ImageNet classification model. |
pliman
In R, models can be downloaded automatically with live CLI progress bars:
library(pliman)
# Check available models and their download status
pliman_available_models()
# Download a model (e.g. u2net)
pliman_download_model("u2net")
# Or download all available models at once
pliman_download_model("all")
img <- image_import("leaves.jpg")
# 1. Background removal / foreground segmentation
seg <- image_segment_dl(img, model = "u2netp")
# 2. Text-prompted zero-shot instance segmentation (Grounded-SAM)
res <- image_segment_dl(
img,
model = "grounded-sam",
prompt = "leaf",
type = "highlight",
bbox = TRUE
)
# 3. Real-time object detection (YOLO26)
boxes <- image_detect_dl(img, model = "yolo26n")
# 4. Real-time instance segmentation (YOLO26-seg)
yolo_seg <- image_segment_dl(img, model = "yolo26n-seg", type = "highlight")
# 5. Real-time human pose estimation (YOLO26-pose)
pose_res <- image_pose_dl(img, model = "yolo26n-pose")
# 6. Image classification (YOLO26-cls, Top-5 ImageNet classes)
top_cls <- image_classify_dl(img, model = "yolo26n-cls", top_k = 5)
# 7. Star-convex polygon detection for seeds, grains, and cells (StarDist)
stars <- image_stardist_dl(img, type = "segment")
# 8. Monocular 3D depth estimation (Depth Anything V2)
depth <- image_depth_dl(img, col_palette = "viridis")
# 9. Self-supervised feature extraction and semantic PCA mapping (DINOv2)
feats <- image_features_dl(img)
# 10. 4x Generative super-resolution (Real-ESRGAN Compact)
sr_img <- image_superres_dl(img, scale = 4)
These models and weights originate from foundational research and open-source contributions across the computer vision community: