Unverified Commit f2557f77 authored by ericmintun's avatar ericmintun Committed by GitHub
Browse files

Merge pull request #9 from roboAdvay/main

Sample code in Getting Started has a typo:

`mask_generator_generate` -> `mask_generator.generate` in README
parents aac76a1f 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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment