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
AutoMaskGenerator(
model_type="default",
checkpoint_path="sam_vit_h_4b8939.pth",
image_path="image.jpg",
device="cuda", # or "cpu"
show=True, # show the image with the mask
)
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.1.1.tar.gz
(30.9 kB
view hashes)