|
@ -21,7 +21,7 @@ This operator extracts features for video or text with [DRL(Disentangled Represe |
|
|
Read the text 'kids feeding and playing with the horse' to generate a text embedding. |
|
|
Read the text 'kids feeding and playing with the horse' to generate a text embedding. |
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
from towhee import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
p = ( |
|
|
p = ( |
|
|
pipe.input('text') \ |
|
|
pipe.input('text') \ |
|
@ -37,7 +37,7 @@ DataCollection(p('kids feeding and playing with the horse')).show() |
|
|
Load an video from path './demo_video.mp4' to generate a video embedding. |
|
|
Load an video from path './demo_video.mp4' to generate a video embedding. |
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
from towhee import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
p = ( |
|
|
p = ( |
|
|
pipe.input('video_path') \ |
|
|
pipe.input('video_path') \ |
|
|