SthPhoenix / InsightFace-REST

InsightFace REST API for easy deployment of face recognition services with TensorRT in Docker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CPU运行报错

leruge opened this issue · comments

FileNotFoundError: [Errno 2] No such file or directory: '/models/onnx/scrfd_2.5g_gnkps/scrfd_2.5g_gnkps.onnx'
这些文件是从哪里下载的?

Models are automatically downloaded from Google drive.
Are you trying to run this repo without docker?
In this case you should change this line

root_dir='/models'
to root_dir='models' and possibly create this dir in app root.

自动下载失败的话,可以手动下载吗?手动下载的都是onnx文件呀,要如何配置,有相关教程吗?

You can manually download models from https://github.com/SthPhoenix/InsightFace-REST#list-of-supported-models

Models should be placed under following path:
<root_dir>/onnx/<model_name>/<model_name>.onnx

非常感谢您的回答,不使用缓存构建docker镜像就可以了,稍后我也试一下手动下载。

问题已解决。
docker build -t $IMAGE:$TAG -f src/Dockerfile_cpu src/.换成docker build --no-cache -t $IMAGE:$TAG -f src/Dockerfile_cpu src/.
deploy_cpu.sh的75行

非常感谢您的回答,不使用缓存构建docker镜像就可以了,稍后我也试一下手动下载。

手动下载的文件只需要放进去可以使用,原来如此简单,构建镜像卡了我好几天。

非常感谢您的回答,不使用缓存构建docker镜像就可以了,稍后我也试一下手动下载。

手动下载的文件只需要放进去可以使用,原来如此简单,构建镜像卡了我好几天。

Glad you managed to solve this issue!