Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bw-bestperf
SAM
Commits
f648bd70
Unverified
Commit
f648bd70
authored
Apr 05, 2023
by
Advay Mengle (at Talos Robotics)
Committed by
GitHub
Apr 05, 2023
Browse files
Merge pull request #1 from roboAdvay/advay/readmefix
Sample code in Getting Started has a typo
parents
b47d02d6
6b71d90d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
README.md
README.md
+1
-1
No files found.
README.md
View file @
f648bd70
...
@@ -54,7 +54,7 @@ or generate masks for an entire image:
...
@@ -54,7 +54,7 @@ or generate masks for an entire image:
```
```
from segment_anything import build_sam, SamAutomaticMaskGenerator
from segment_anything import build_sam, SamAutomaticMaskGenerator
mask_generator = SamAutomaticMaskGenerator(build_sam(checkpoint="</path/to/model.pth>"))
mask_generator = SamAutomaticMaskGenerator(build_sam(checkpoint="</path/to/model.pth>"))
masks = mask_generator
_
generate(<your_image>)
masks = mask_generator
.
generate(<your_image>)
```
```
Additionally, masks can be generated for images from the command line:
Additionally, masks can be generated for images from the command line:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment