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

Fix typos in USAGE.md #433

Merged
merged 1 commit into from
Apr 23, 2023
Merged
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
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ output = remove(input, bgcolor=(255, 255, 255))
```

### Using input points
You can use the `input_point` and `input_label` argument to specify the points that should be used for the masks. This only works with the `sam` model.
You can use the `input_points` and `input_labels` arguments to specify the points that should be used for the masks. This only works with the `sam` model.
```python
import numpy as np
# Define the points and labels
# The points are defined as [y, x]
input_point = np.array([[400, 350], [700, 400], [200, 400]])
input_label = np.array([1, 1, 2])
input_points = np.array([[400, 350], [700, 400], [200, 400]])
input_labels = np.array([1, 1, 2])

image = remove(image,session=session, input_point=input_point, input_label=input_label)
image = remove(image,session=session, input_points=input_points, input_labels=input_labels)
```

## Save the image
Expand Down