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() ```