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