|
@ -17,12 +17,8 @@ This operator extracts features for video or text with [CLIP4Clip](https://arxiv |
|
|
|
|
|
|
|
|
## Code Example |
|
|
## Code Example |
|
|
|
|
|
|
|
|
Load an video from path './demo_video.mp4' to generate an video embedding. |
|
|
|
|
|
|
|
|
|
|
|
Read the text 'kids feeding and playing with the horse' to generate an text embedding. |
|
|
Read the text 'kids feeding and playing with the horse' to generate an text embedding. |
|
|
|
|
|
|
|
|
*Write the pipeline in simplified style*: |
|
|
|
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
|
@ -37,6 +33,8 @@ DataCollection(p('kids feeding and playing with the horse')).show() |
|
|
``` |
|
|
``` |
|
|
![](text_emb_output.png) |
|
|
![](text_emb_output.png) |
|
|
|
|
|
|
|
|
|
|
|
Load an video from path './demo_video.mp4' to generate an video embedding. |
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|