Open bltcn opened 2 years ago
docker logs -f compreface-core-gpu
{"severity": "WARNING", "message": "400 Bad Request: No face is found in the given image", "request": {"method": "POST", "path": "/scan_faces", "filename": "image.jpg", "api_key": "", "remote_addr": "127.0.0.1"}, "logger": "root", "module": "error_handling", "traceback": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.7/dist-packages/flask/app.py\", line 1950, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/usr/local/lib/python3.7/dist-packages/flask/app.py\", line 1936, in dispatch_request\n return self.view_functionsrule.endpoint\n File \"./src/services/flask_/needs_attached_file.py\", line 32, in wrapper\n return f(*args, **kwargs)\n File \"./src/_endpoints.py\", line 85, in scan_faces_post\n faces = _limit(faces, request.values.get(ARG.LIMIT))\n File \"./src/_endpoints.py\", line 121, in _limit\n raise NoFaceFoundError\nsrc.exceptions.NoFaceFoundError: 400 Bad Request: No face is found in the given image\n", "build_version": "dev"}
No ML model is ideal, here is a benchmark for face detection:
https://paperswithcode.com/sota/face-detection-on-wider-face-hard
SubCenter-ArcFace-r100-gpu
image uses RetinaFace - one of the best face detectors. It still does not find faces sometimes.
We can't fix it from our side until a new even more accurate model will be invented.
Please note that the pictures and scripts I tested are all sample pictures and scripts provided by this repository. So this docker cannot pass the official test, and the CPU version can normally detect faces and perform calculations.I tested the 0.6.1 GPU version and the 0.6.0 GPU version, and both had the same problem, but the CPU version did not
This seems related to Issue, can you see if your core log stuck at MXNet?
Describe the bug SubCenter-ArcFace-r100-gpu docker cannot find face
To Reproduce Steps to reproduce the behavior:
--- Run benchmark with ./sample_images/008_B.jpg (135756 bytes) --- Error: No embedding in response Concurrency Level: 1 Time per request: 40.837 [ms] (mean) Time per request: 40.837 [ms] (mean, across all concurrent requests)
--- Run benchmark with ./sample_images/001_A.jpg (2467788 bytes) --- Error: No embedding in response Concurrency Level: 1 Time per request: 867.224 [ms] (mean) Time per request: 867.224 [ms] (mean, across all concurrent requests)
Screenshots 008_B.jpg
001_A.jpg
Server (please complete the following information):
+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 5016 C /usr/bin/python3.7 537MiB | | 0 N/A N/A 65213 C uwsgi 2509MiB | +-----------------------------------------------------------------------------+