Sample code in Getting Started has a typo
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							b47d02d68c
						
					
				
				
					commit
					6b71d90d00
				
			@@ -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:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user