Skip to content

Commit

Permalink
run with conda env
Browse files Browse the repository at this point in the history
  • Loading branch information
AtticusZeller committed Apr 12, 2024
1 parent 62b59f7 commit a857756
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .idea/BoostFace.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,18 @@ Dive into the world of high-performance face recognition by cloning this repo an
```bash
git clone https://github.com/Atticuszz/boostface.git
cd boostface
# Follow the setup instructions in the documentation
```

- download arcface_onnx model
```bash
cd src/Demo/backend/services/inference/model_zoo
wget https://github.com/Atticuszz/BoostFace/releases/download/dataset/models.zip
unzip models.zip
rm -rf models.zip
```

- install env
```bash
cd src/Demo
conda env create -f environment.yml
```
2 changes: 1 addition & 1 deletion src/Demo/backend/services/db/milvus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _create_collection(self) -> Collection:

logger.debug(f"\nCollection {self._config.collection.name} is creating...")
collection = Collection(**self._config.collection.as_dict())
logger.debug("collection created:", self._config.collection.name)
logger.debug(f"collection created:{self._config.collection.name}")
return collection

def insert(self, entities: list[ndarray, ndarray, ndarray]):
Expand Down
28 changes: 28 additions & 0 deletions src/Demo/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: BoostFace-demo
channels:
- conda-forge
- nvidia
- defaults
dependencies:
- python=3.11
- cudatoolkit=11.8
- cudnn=8.9.2.26
- numpy=1.26.4
- streamlit=1.31.1
- pydantic-settings=2.2.1
- uvicorn=0.27.1
- scikit-image=0.22.0
- onnx=1.15.0
- scalene
- pip
- pip:
- onnxruntime-gpu
- supabase-py-async
- pymilvus
- python-dotenv
- pygizmokit
- fastapi
- opencv-python
- pydantic
- filterpy
- websockets
2 changes: 1 addition & 1 deletion src/Demo/web/inference/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from typing import NamedTuple

DATA_ROOT = Path(__file__).parent / "data"
DATA_ROOT = Path(__file__).parents[1] / "data"
VIDEO_ROOT = DATA_ROOT / "video"
IMAGE_ROOT = DATA_ROOT / "image"
MODEL_ROOT = DATA_ROOT / "model"
Expand Down

0 comments on commit a857756

Please sign in to comment.