No project description provided
Project description
This repo is a packaged version of the segment-anything model.
Installation
pip install metaseg
Usage
from metaseg import SegAutoMaskGenerator
# If gpu memory is not enough, reduce the points_per_side and points_per_batch.
SegAutoMaskGenerator(
model_type="vit_h", # "vit_l", "vit_b"
source= "test.png", # test.mp4
device="cuda", # "cpu" or "cuda"
show=True,
points_per_side=16, # Optional
points_per_batch=64, # Optional
)
Extra Features
- Support for video files
- Support for pip installation
- Support for automatic download model weights
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
metaseg-0.2.1.tar.gz
(32.3 kB
view hashes)