merve / sam2-hiera-large

huggingface.co
Total runs: 75
24-hour runs: 0
7-day runs: -24
30-day runs: -11
Model's Last Updated: August 02 2024
mask-generation

Introduction of sam2-hiera-large

Model Details of sam2-hiera-large

SAM2-Hiera-large

This repository contains large variant of SAM2 model. SAM2 is the state-of-the-art mask generation model released by Meta.

Usage

You can use it like below. First install packaged version of SAM2.

pip install samv2 huggingface_hub

Each model requires different classes to infer.

from huggingface_hub import hf_hub_download
from sam2.build_sam import build_sam2
from sam2.sam2_image_predictor import SAM2ImagePredictor

hf_hub_download(repo_id = "merve/sam2-hiera-large", filename="sam2_hiera_large.pt", local_dir = "./")
sam2_checkpoint = "../checkpoints/sam2_hiera_large.pt"
model_cfg = "sam2_hiera_l.yaml"

sam2_model = build_sam2(config, ckpt, device="cuda", apply_postprocessing=False)
predictor = SAM2ImagePredictor(sam2_model)

# it accepts coco format
box = [x1, y1, w, h]
predictor.set_image(image)

masks = predictor.predict(box=box,
multimask_output=False)

For automatic mask generation:

from huggingface_hub import hf_hub_download
from sam2.build_sam import build_sam2
from sam2.automatic_mask_generator import SAM2AutomaticMaskGenerator

hf_hub_download(repo_id = "merve/sam2-hiera-large", filename="sam2_hiera_large.pt", local_dir = "./")
sam2_checkpoint = "../checkpoints/sam2_hiera_large.pt"
model_cfg = "sam2_hiera_l.yaml"

sam2 = build_sam2(model_cfg, sam2_checkpoint, device ='cuda', apply_postprocessing=False)

mask_generator = SAM2AutomaticMaskGenerator(sam2)
masks = mask_generator.generate(image)
Resources

The team behind SAM2 made example notebooks for all tasks.

Runs of merve sam2-hiera-large on huggingface.co

75
Total runs
0
24-hour runs
9
3-day runs
-24
7-day runs
-11
30-day runs

More Information About sam2-hiera-large huggingface.co Model

More sam2-hiera-large license Visit here:

https://choosealicense.com/licenses/apache-2.0

sam2-hiera-large huggingface.co

sam2-hiera-large huggingface.co is an AI model on huggingface.co that provides sam2-hiera-large's model effect (), which can be used instantly with this merve sam2-hiera-large model. huggingface.co supports a free trial of the sam2-hiera-large model, and also provides paid use of the sam2-hiera-large. Support call sam2-hiera-large model through api, including Node.js, Python, http.

sam2-hiera-large huggingface.co Url

https://huggingface.co/merve/sam2-hiera-large

merve sam2-hiera-large online free

sam2-hiera-large huggingface.co is an online trial and call api platform, which integrates sam2-hiera-large's modeling effects, including api services, and provides a free online trial of sam2-hiera-large, you can try sam2-hiera-large online for free by clicking the link below.

merve sam2-hiera-large online free url in huggingface.co:

https://huggingface.co/merve/sam2-hiera-large

sam2-hiera-large install

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

sam2-hiera-large install url in huggingface.co:

https://huggingface.co/merve/sam2-hiera-large

Url of sam2-hiera-large

sam2-hiera-large huggingface.co Url

Provider of sam2-hiera-large huggingface.co

merve
ORGANIZATIONS

Other API from merve

huggingface.co

Total runs: 36
Run Growth: 1
Growth Rate: 2.63%
Updated:February 26 2024
huggingface.co

Total runs: 34
Run Growth: -24
Growth Rate: -70.59%
Updated:January 06 2024
huggingface.co

Total runs: 21
Run Growth: -47
Growth Rate: -223.81%
Updated:October 12 2023
huggingface.co

Total runs: 15
Run Growth: 8
Growth Rate: 57.14%
Updated:February 22 2024
huggingface.co

Total runs: 15
Run Growth: 8
Growth Rate: 53.33%
Updated:September 19 2025
huggingface.co

Total runs: 14
Run Growth: 7
Growth Rate: 50.00%
Updated:July 18 2024
huggingface.co

Total runs: 13
Run Growth: -18
Growth Rate: -138.46%
Updated:January 28 2026
huggingface.co

Total runs: 11
Run Growth: 5
Growth Rate: 50.00%
Updated:January 28 2023
huggingface.co

Total runs: 11
Run Growth: -2
Growth Rate: -18.18%
Updated:September 11 2025
huggingface.co

Total runs: 10
Run Growth: 9
Growth Rate: 90.00%
Updated:November 25 2023
huggingface.co

Total runs: 9
Run Growth: 6
Growth Rate: 66.67%
Updated:February 10 2023
huggingface.co

Total runs: 8
Run Growth: -22
Growth Rate: -275.00%
Updated:December 18 2024
huggingface.co

Total runs: 8
Run Growth: 4
Growth Rate: 50.00%
Updated:July 11 2023
huggingface.co

Total runs: 7
Run Growth: 3
Growth Rate: 42.86%
Updated:March 26 2024
huggingface.co

Total runs: 6
Run Growth: 0
Growth Rate: 0.00%
Updated:March 26 2024
huggingface.co

Total runs: 5
Run Growth: 3
Growth Rate: 60.00%
Updated:April 02 2023
huggingface.co

Total runs: 5
Run Growth: -10
Growth Rate: -200.00%
Updated:October 04 2023
huggingface.co

Total runs: 5
Run Growth: 3
Growth Rate: 60.00%
Updated:April 02 2023
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:June 14 2023
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:December 20 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 25 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 30 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 30 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 04 2024