Skip to content

Commit

Permalink
no need prebuilt models anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
serengil authored Jun 23, 2021
1 parent ecf43b5 commit a99b9c6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,6 @@ home = str(Path.home())
print("HOME_FOLDER is ",home)
```

If you are going to call deepface functions in a for loop, then you should build the model once and pass to the functions. This avoids to cause a memory problem and also it will speed you up.

```python
model_name = "Facenet"
model = DeepFace.build_model(model_name)
DeepFace.verify("img1.jpg", "img2.jpg", model_name = model_name, model = model)
```

## Contribution

Pull requests are welcome. You should run the unit tests locally by running [`test/unit_tests.py`](https://github.com/serengil/deepface/blob/master/tests/unit_tests.py). Please share the unit test result logs in the PR. Deepface is currently compatible with TF 1 and 2 versions. Change requests should satisfy those requirements both.
Expand Down

0 comments on commit a99b9c6

Please sign in to comment.