Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ibaiGorordo authored Aug 3, 2024
1 parent 7668314 commit 2f19534
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ The original SAM2 model can be found in this repository: [SAM2 Repository](https
# Examples

![!ONNX-SAM2-Segment-Anything-iMAGE](https://github.com/ibaiGorordo/ONNX-SAM2-Segment-Anything/raw/main/doc/img/sam2_masked_img.jpg)
* **Image inference**:

## **Image inference**:
Runs the image segmentation model on an image given some points defined in the script.
```shell
python image_segmentation.py
Expand All @@ -42,7 +43,7 @@ Usage:
- `point_labels`: This is a list of 1D numpy arrays, where each element in the list correspond to a different label. For example, for 3 different labels, the list will contain 3 numpy arrays. Each numpy array contains N points, where N is the number of points. The value can be 0 or 1, where 0 represents a negative value and 1 a positive value, i.e. the objects is present at that pixel location.


* **SAM2 Annotation App**:
## **SAM2 Annotation App**:
A minimal GUI to annotate images with the SAM2 model.
```shell
python webcam_depth_estimation.py
Expand Down

0 comments on commit 2f19534

Please sign in to comment.