ultralytics 8.0.196 instance-mean Segment loss (#5285)
Co-authored-by: Andy <39454881+yermandy@users.noreply.github.com>
This commit is contained in:
parent
7517667a33
commit
e7f0658744
72 changed files with 369 additions and 493 deletions
|
|
@ -55,7 +55,7 @@ To perform object detection on an image, use the `predict` method as shown below
|
|||
|
||||
# Run inference on an image
|
||||
everything_results = model(source, device='cpu', retina_masks=True, imgsz=1024, conf=0.4, iou=0.9)
|
||||
|
||||
|
||||
# Prepare a Prompt Process object
|
||||
prompt_process = FastSAMPrompt(source, everything_results, device='cpu')
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ To perform object detection on an image, use the `predict` method as shown below
|
|||
ann = prompt_process.point_prompt(points=[[200, 200]], pointlabel=[1])
|
||||
prompt_process.plot(annotations=ann, output='./')
|
||||
```
|
||||
|
||||
|
||||
=== "CLI"
|
||||
```bash
|
||||
# Load a FastSAM model and segment everything with it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue