Merge pull request #9 from roboAdvay/main

Sample code in Getting Started has a typo:

`mask_generator_generate` -> `mask_generator.generate` in README
pull/58/head
ericmintun 2023-04-06 09:45:01 -07:00 committed by GitHub
commit f2557f7780
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: