From 92419595e073582cfd3f799927007238b1151316 Mon Sep 17 00:00:00 2001 From: shiyu22 Date: Fri, 8 Apr 2022 10:54:38 +0800 Subject: [PATCH] Update README Signed-off-by: shiyu22 --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a038b36..1bd3d6e 100644 --- a/README.md +++ b/README.md @@ -27,25 +27,25 @@ Load an image from path './test.png'. import towhee towhee.glob('./test.png') \ - .image_decode.cv2() \ + .image_decode() \ .img2img_translation.animegan(model_name = 'hayao') \ .show() ``` -*Write a same pipeline with explicit inputs/outputs name specifications:* +*Write a pipeline with explicit inputs/outputs name specifications:* ```python import towhee - + towhee.glob['path']('./test.png') \ - .image_decode.cv2['path', 'origin']() \ + .image_decode['path', 'origin']() \ .img2img_translation.animegan['origin', 'facepaintv2'](model_name = 'facepaintv2') \ .img2img_translation.animegan['origin', 'hayao'](model_name = 'hayao') \ .img2img_translation.animegan['origin', 'paprika'](model_name = 'paprika') \ .img2img_translation.animegan['origin', 'shinkai'](model_name = 'shinkai') \ - .select('origin', 'facepaintv2', 'hayao', 'paprika', 'shinkai') \ + .select['origin', 'facepaintv2', 'hayao', 'paprika', 'shinkai']() \ .show() ```