From cb386b565c0e3d420a950fe6cbc8bdefdb9dfa66 Mon Sep 17 00:00:00 2001 From: ChengZi Date: Fri, 24 Jun 2022 15:24:18 +0800 Subject: [PATCH] update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9f6b3a2..0bd8c96 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,11 @@ import towhee towhee.dc(['./demo_video.mp4']) \ .video_decode.ffmpeg(sample_type='uniform_temporal_subsample', args={'num_samples': 12}) \ .runas_op(func=lambda x: [y for y in x]) \ - .drl(base_encoder='clip_vit_b32', modality='video', device='cpu') \ + .video_text_embedding.drl(base_encoder='clip_vit_b32', modality='video', device='cpu') \ .show() towhee.dc(['kids feeding and playing with the horse']) \ - .drl(base_encoder='clip_vit_b32', modality='text', device='cpu') \ + .video_text_embedding.drl(base_encoder='clip_vit_b32', modality='text', device='cpu') \ .show() ``` @@ -49,11 +49,11 @@ import towhee towhee.dc['path'](['./demo_video.mp4']) \ .video_decode.ffmpeg['path', 'frames'](sample_type='uniform_temporal_subsample', args={'num_samples': 12}) \ .runas_op['frames', 'frames'](func=lambda x: [y for y in x]) \ - .drl['frames', 'vec'](base_encoder='clip_vit_b32', modality='video', device='cpu') \ + .video_text_embedding.drl['frames', 'vec'](base_encoder='clip_vit_b32', modality='video', device='cpu') \ .show(formatter={'path': 'video_path'}) towhee.dc['text'](['kids feeding and playing with the horse']) \ - .drl['text','vec'](base_encoder='clip_vit_b32', modality='text', device='cpu') \ + .video_text_embedding.drl['text','vec'](base_encoder='clip_vit_b32', modality='text', device='cpu') \ .select['text', 'vec']() \ .show() ```