Sample code in Getting Started has a typo

pull/9/head^2
Advay Mengle (at Talos Robotics) 2023-04-05 12:03:26 -07:00 committed by GitHub
parent b47d02d68c
commit 6b71d90d00
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: