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
|
|
@ -66,10 +66,10 @@ You can download the model [here](https://github.com/ChaoningZhang/MobileSAM/blo
|
|||
=== "Python"
|
||||
```python
|
||||
from ultralytics import SAM
|
||||
|
||||
|
||||
# Load the model
|
||||
model = SAM('mobile_sam.pt')
|
||||
|
||||
|
||||
# Predict a segment based on a point prompt
|
||||
model.predict('ultralytics/assets/zidane.jpg', points=[900, 370], labels=[1])
|
||||
```
|
||||
|
|
@ -81,10 +81,10 @@ You can download the model [here](https://github.com/ChaoningZhang/MobileSAM/blo
|
|||
=== "Python"
|
||||
```python
|
||||
from ultralytics import SAM
|
||||
|
||||
|
||||
# Load the model
|
||||
model = SAM('mobile_sam.pt')
|
||||
|
||||
|
||||
# Predict a segment based on a box prompt
|
||||
model.predict('ultralytics/assets/zidane.jpg', bboxes=[439, 437, 524, 709])
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue