# a003_face **Repository Path**: rainbowzl/a003_face ## Basic Information - **Project Name**: a003_face - **Description**: 12345678910 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-02 - **Last Updated**: 2025-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 环境配置 使用Python版本3.12。创建新conda环境后运行如下安装命令。 Linux: ``` # 二选一:使用CUDA pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cu121 # 二选一:使用CPU pip3 install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cpu # 无论CUDA或CPU,都需要的库 pip3 install facenet-pytorch opencv-python seaborn fastapi 'uvicorn[standard]' colored_traceback python-multipart scikit-learn colorama natsort retinaface-pytorch schedule onnxruntime flask ultralytics pip3 install --only-binary :all: insightface ``` # 启动说明 1. cd进入项目目录 2. 运行如下命令,启动服务 ``` export PYTHONPATH=项目文件夹所在路径:$PYTHONPATH python ./a003_fastapi/a001_main.py ``` 若要挂在后台运行,可将第二条命令改为 "nohup python ./a002_main/a004_fastapi/a001_main.py > output.log 2>&1 &"