Metadata-Version: 2.1
Name: metaseg
Version: 0.1.1
Home-page: https://github.com/kadirnar/segment-anything-pip
Author: kadirnar
License: Apache-2.0
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: all
Provides-Extra: dev
License-File: LICENSE

<div align="center">
<h1>
     MetaSeg: Packaged version of the Segment Anything repository
</h1>
<div>
    <a href="https://badge.fury.io/py/meta-segment"><img src="https://badge.fury.io/py/meta-segment.svg" alt="pypi version"></a>
</div>
</div>

This repo is a packaged version of the [segment-anything](https://github.com/facebookresearch/segment-anything) model.


### Installation
```bash
pip install metaseg
```

### Usage
```python
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
)
```
