Merge pull request #1 from roboAdvay/advay/readmefix

Sample code in Getting Started has a typo
pull/9/head
Advay Mengle (at Talos Robotics) 2023-04-05 12:06:56 -07:00 committed by GitHub
commit f648bd7026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ or generate masks for an entire image:
```
from segment_anything import build_sam, SamAutomaticMaskGenerator
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: