Browse Source
Fix typo in README
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
1 changed files with
4 additions and
4 deletions
-
README.md
|
@ -13,12 +13,12 @@ The pipeline is used to extract the feature vector of detected faces in images. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Code Example |
|
|
## Code Example |
|
|
Load an image from path './test_face.jpg'. |
|
|
|
|
|
|
|
|
Load an image from path './test_face.jpg'. |
|
|
|
|
|
|
|
|
*Write the pipeline in simplified style*: |
|
|
*Write the pipeline in simplified style*: |
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
import towhee |
|
|
|
|
|
|
|
|
import towhee |
|
|
towhee.glob('./test_face.jpg') \ |
|
|
towhee.glob('./test_face.jpg') \ |
|
|
.image_decode.cv2() \ |
|
|
.image_decode.cv2() \ |
|
|
.face_embedding.deepface(model_name = 'DeepFace').to_list() |
|
|
.face_embedding.deepface(model_name = 'DeepFace').to_list() |
|
@ -33,7 +33,7 @@ towhee.glob('./test_face.jpg') \ |
|
|
```python |
|
|
```python |
|
|
import towhee |
|
|
import towhee |
|
|
|
|
|
|
|
|
towhee.glob['path']('./test_face.jpgg') \ |
|
|
|
|
|
|
|
|
towhee.glob['path']('./test_face.jpg') \ |
|
|
.image_decode.cv2['path', 'img']() \ |
|
|
.image_decode.cv2['path', 'img']() \ |
|
|
.face_embedding.deepface['img', 'vec'](model_name = 'DeepFace') \ |
|
|
.face_embedding.deepface['img', 'vec'](model_name = 'DeepFace') \ |
|
|
.select['img','vec']() \ |
|
|
.select['img','vec']() \ |
|
@ -51,7 +51,7 @@ Create the operator via the following factory method |
|
|
|
|
|
|
|
|
***face_embedding.deepface(model_name = 'which model to use')*** |
|
|
***face_embedding.deepface(model_name = 'which model to use')*** |
|
|
|
|
|
|
|
|
Model options: |
|
|
|
|
|
|
|
|
Model options: |
|
|
- VGG-Face |
|
|
- VGG-Face |
|
|
- FaceNet |
|
|
- FaceNet |
|
|
- OpenFace |
|
|
- OpenFace |
|
|