Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add main code #1

Merged
merged 1 commit into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include requirements.txt
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
# segment-anything-pip
<div align="center">
<h2>
Meta-Segment: Segment Anything Model (SAM)
</h2>
<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 meta-segment

```

### Usage
```python

```
11 changes: 11 additions & 0 deletions meta_segment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

from meta_segment.automatic_mask_generator import SamAutomaticMaskGenerator
from meta_segment.build_sam import build_sam, build_sam_vit_b, build_sam_vit_h, build_sam_vit_l, sam_model_registry
from meta_segment.predictor import SamPredictor

__version__ = "0.1.0"
Loading