|
|
@ -18,12 +18,8 @@ This operator extracts features for video or text with [DRL(Disentangled Represe |
|
|
|
|
|
|
|
## Code Example |
|
|
|
|
|
|
|
Load an video from path './demo_video.mp4' to generate a video embedding. |
|
|
|
|
|
|
|
Read the text 'kids feeding and playing with the horse' to generate a text embedding. |
|
|
|
|
|
|
|
*Write the pipeline in simplified style*: |
|
|
|
|
|
|
|
```python |
|
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
@ -38,6 +34,7 @@ DataCollection(p('kids feeding and playing with the horse')).show() |
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
Load an video from path './demo_video.mp4' to generate a video embedding. |
|
|
|
|
|
|
|
```python |
|
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|