diff --git a/README.md b/README.md
index 16b6918..78a9c6e 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,8 @@ towhee.dc(['./demo_video.mp4']) \
.show()
```
+
+
- Encode text:
```python
import towhee
@@ -41,6 +43,7 @@ towhee.dc(['kids feeding and playing with the horse']) \
.video_text_embedding.frozen_in_time(model_name='frozen_in_time_base_16_244', modality='text', device='cpu') \
.show()
```
+
*Write a same pipeline with explicit inputs/outputs name specifications:*
@@ -48,16 +51,19 @@ towhee.dc(['kids feeding and playing with the horse']) \
import towhee
towhee.dc['path'](['./demo_video.mp4']) \
- .video_decode.ffmpeg['path', 'frames'](sample_type='uniform_temporal_subsample', args={'num_samples': 4}) \
- .runas_op['frames', 'frames'](func=lambda x: [y for y in x]) \
- .video_text_embedding.frozen_in_time['frames', 'vec'](model_name='frozen_in_time_base_16_244', modality='video', device='cpu') \
- .show()
+ .video_decode.ffmpeg['path', 'frames'](sample_type='uniform_temporal_subsample', args={'num_samples': 4}) \
+ .runas_op['frames', 'frames'](func=lambda x: [y for y in x]) \
+ .video_text_embedding.frozen_in_time['frames', 'vec'](model_name='frozen_in_time_base_16_244', modality='video', device='cpu') \
+ .select['path', 'vec']() \
+ .show(formatter={'path': 'video_path'})
towhee.dc['text'](["kids feeding and playing with the horse"]) \
.video_text_embedding.frozen_in_time['text','vec'](model_name='frozen_in_time_base_16_244', modality='text', device='cpu') \
.select['text', 'vec']() \
.show()
```
+
+
diff --git a/result1.png b/result1.png
new file mode 100644
index 0000000..e455dd3
Binary files /dev/null and b/result1.png differ
diff --git a/result2.png b/result2.png
new file mode 100644
index 0000000..5d027b7
Binary files /dev/null and b/result2.png differ
diff --git a/result3.png b/result3.png
new file mode 100644
index 0000000..3444e60
Binary files /dev/null and b/result3.png differ
diff --git a/result4.png b/result4.png
new file mode 100644
index 0000000..58b351c
Binary files /dev/null and b/result4.png differ