Skip to content

Commit

Permalink
Add Yolo-World to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jun 29, 2024
1 parent 780fa57 commit 321ccfa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
File renamed without changes
File renamed without changes
Binary file added .readme/dogs_yoloworld.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Here are models that can be downloaded:
| SAM 600M | 600M | 600MB | `osam run sam` |
| EfficientSAM 10M | 10M | 40MB | `osam run efficientsam:10m` |
| EfficientSAM 30M | 30M | 100MB | `osam run efficientsam` |
| YoloWorld XL | 100M | 400MB | `osam run yoloworld` |

PS. `sam`, `efficientsam` is equivalent to `sam:latest`, `efficientsam:latest`.

Expand All @@ -66,11 +67,12 @@ osam run efficientsam --image examples/_images/dogs.jpg --json

# Give a prompt
osam run efficientsam --image examples/_images/dogs.jpg \
--prompt '{"points": [[1439, 504], [1439, 1289]], "point_labels": [1, 1]}' > output.png
--prompt '{"points": [[1439, 504], [1439, 1289]], "point_labels": [1, 1]}' > efficientsam.png
osam run yoloworld --image examples/_images/dogs.jpg --prompt '{"text": ["dog"]}' > yoloworld.png
```

<img src="https://github.com/wkentaro/osam/raw/main/examples/_images/dogs.jpg" width="35%"> <img src="https://github.com/wkentaro/osam/raw/main/.readme/dogs_output.png" width="35%">
<i>Input and output images ('dogs.jpg', 'output.png').</i>
<img src="https://github.com/wkentaro/osam/raw/main/examples/_images/dogs.jpg" width="30%"> <img src="https://github.com/wkentaro/osam/raw/main/.readme/dogs_efficientsam.png" width="30%"> <img src="https://github.com/wkentaro/osam/raw/main/.readme/dogs_yoloworld.png" width="30%">
<i>Input and output images ('dogs.jpg', 'efficientsam.png', 'yoloworld.png').</i>

### Python

Expand All @@ -86,7 +88,7 @@ request = osam.types.GenerateRequest(
response = osam.apis.generate(request=request)
PIL.Image.fromarray(response.mask).save("mask.png")
```
<img src="https://github.com/wkentaro/osam/raw/main/examples/_images/dogs.jpg" width="35%"> <img src="https://github.com/wkentaro/osam/raw/main/.readme/dogs_mask.png" width="35%">
<img src="https://github.com/wkentaro/osam/raw/main/examples/_images/dogs.jpg" width="35%"> <img src="https://github.com/wkentaro/osam/raw/main/.readme/dogs_efficientsam_mask.png" width="35%">
<i>Input and output images ('dogs.jpg', 'mask.png').</i>

### HTTP
Expand Down

0 comments on commit 321ccfa

Please sign in to comment.