From 47b3358b937deb63ba4c820d2189de0aac42c073 Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Tue, 13 Sep 2022 17:11:42 +0800 Subject: [PATCH] Update readme Signed-off-by: Jael Gu --- README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 16787d1..6f8106c 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,12 @@ and use the pretrained ISC model ('resnet50') to generate an image embedding. ```python import towhee -towhee.glob('./towhee.jpg') \ - .image_decode() \ - .image_embedding.isc() \ - .show() +( + towhee.glob('./towhee.jpg') + .image_decode() + .image_embedding.isc() + .show() +) ``` @@ -35,11 +37,13 @@ towhee.glob('./towhee.jpg') \ ```python import towhee -towhee.glob['path']('./towhee.jpg') \ - .image_decode['path', 'img']() \ - .image_embedding.isc['img', 'vec']() \ - .select['img', 'vec']() \ - .show() +( + towhee.glob['path']('./towhee.jpg') + .image_decode['path', 'img']() + .image_embedding.isc['img', 'vec']() + .select['img', 'vec']() + .show() +) ```