Browse Source
Update README with dc2
Signed-off-by: shiyu22 <shiyu.chen@zilliz.com>
main
1 changed files with
0 additions and
15 deletions
-
README.md
|
|
@ -26,7 +26,6 @@ Load an image from path './test.png' and use yolov5 model to detect objects in t |
|
|
|
|
|
|
|
*Write a same pipeline with explicit inputs/outputs name specifications:* |
|
|
|
|
|
|
|
- **option 1: towhee>=0.9.0** |
|
|
|
```Python |
|
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
@ -41,20 +40,6 @@ p = ( |
|
|
|
DataCollection(p('./test.png')).show() |
|
|
|
``` |
|
|
|
|
|
|
|
- **option 2:** |
|
|
|
```python |
|
|
|
import towhee |
|
|
|
|
|
|
|
( |
|
|
|
towhee.glob['path']('./test.png') |
|
|
|
.image_decode['path','img']() |
|
|
|
.object_detection.yolov5['img', ('box', 'class', 'score')]() |
|
|
|
.image_crop[('img', 'box'), 'object'](clamp = True) |
|
|
|
.select['img','object', 'class']() |
|
|
|
.show() |
|
|
|
) |
|
|
|
``` |
|
|
|
|
|
|
|
<img src="./result.png" alt="result" height="140px"/> |
|
|
|
|
|
|
|
<br /> |
|
|
|