From 6a3c8aa3ee14294a7460a7f1c37be5f4181fc19f Mon Sep 17 00:00:00 2001 From: wxywb Date: Thu, 2 Feb 2023 09:19:10 +0000 Subject: [PATCH] update the readme. Signed-off-by: wxywb --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ec98f27..b2d02fe 100644 --- a/README.md +++ b/README.md @@ -16,16 +16,18 @@ The pipeline is used to extract the feature vector of detected faces in images. Load an image from path './test_face.jpg'. *Write a pipeline with explicit inputs/outputs name specifications:* +```python from towhee.dc2 import pipe, ops, DataCollection p = ( pipe.input('path') .map('path', 'img', ops.image_decode()) - .map('img', 'vec', ops.face_embedding.deepface(model_name = 'DeepFace'))) + .map('img', 'vec', ops.face_embedding.deepface(model_name = 'DeepFace')) .output('img', 'vec') ) DataCollection(p('./test_face.jpg')).show() +```