├── .gitignore ├── LICENSE ├── README.md ├── benchmark.py ├── compose ├── README.md ├── cpu.env ├── docker-compose-cpu.yml ├── docker-compose-multi-gpu.yml ├── docker-compose-v2.yml ├── docker-compose.yml └── example.env ├── dockerfiles ├── Dockerfile_cpu └── Dockerfile_trt ├── entrypoint.sh ├── examples ├── README.md └── process_dir_async.py ├── if_rest ├── __init__.py ├── api │ ├── main.py │ └── routes │ │ ├── __init__.py │ │ └── v1 │ │ ├── __init__.py │ │ ├── recognition.py │ │ └── service.py ├── core │ ├── configs.py │ ├── converters │ │ ├── onnx_to_trt.py │ │ ├── remove_initializer_from_input.py │ │ └── reshape_onnx.py │ ├── face_model.py │ ├── model_zoo │ │ ├── detectors │ │ │ ├── abstract.py │ │ │ ├── centerface.py │ │ │ ├── common │ │ │ │ └── nms.py │ │ │ ├── dbface.py │ │ │ ├── retinaface.py │ │ │ ├── scrfd.py │ │ │ └── yolov5_face.py │ │ ├── exec_backends │ │ │ ├── abstract.py │ │ │ ├── onnxrt_backend.py │ │ │ ├── triton_backend.py │ │ │ ├── trt_backend.py │ │ │ └── trt_loader.py │ │ ├── face_detectors.py │ │ ├── face_processors.py │ │ └── getter.py │ ├── processing.py │ └── utils │ │ ├── download.py │ │ ├── download_google.py │ │ ├── fast_face_align.py │ │ ├── helpers.py │ │ └── image_provider.py ├── logger.py ├── prepare_models.py ├── schemas.py └── settings.py ├── ifr_clients ├── README.md ├── __init__.py ├── common_utils.py ├── ifr_client.py ├── ifr_client_async.py └── schemas.py ├── misc ├── images │ ├── api_sample.jpg │ └── draw_detections.jpg ├── nginx_conf │ └── conf.d │ │ └── default.conf └── test_images │ ├── Stallone.jpg │ ├── TH.png │ ├── TH1.jpg │ ├── lumia.jpg │ └── mask.jpg ├── models └── models.json └── requirements.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/README.md -------------------------------------------------------------------------------- /benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/benchmark.py -------------------------------------------------------------------------------- /compose/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/compose/README.md -------------------------------------------------------------------------------- /compose/cpu.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/compose/cpu.env -------------------------------------------------------------------------------- /compose/docker-compose-cpu.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/compose/docker-compose-cpu.yml -------------------------------------------------------------------------------- /compose/docker-compose-multi-gpu.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/compose/docker-compose-multi-gpu.yml -------------------------------------------------------------------------------- /compose/docker-compose-v2.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/compose/docker-compose-v2.yml -------------------------------------------------------------------------------- /compose/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/compose/docker-compose.yml -------------------------------------------------------------------------------- /compose/example.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/compose/example.env -------------------------------------------------------------------------------- /dockerfiles/Dockerfile_cpu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/dockerfiles/Dockerfile_cpu -------------------------------------------------------------------------------- /dockerfiles/Dockerfile_trt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/dockerfiles/Dockerfile_trt -------------------------------------------------------------------------------- /entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/entrypoint.sh -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/process_dir_async.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/examples/process_dir_async.py -------------------------------------------------------------------------------- /if_rest/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /if_rest/api/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/api/main.py -------------------------------------------------------------------------------- /if_rest/api/routes/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /if_rest/api/routes/v1/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/api/routes/v1/__init__.py -------------------------------------------------------------------------------- /if_rest/api/routes/v1/recognition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/api/routes/v1/recognition.py -------------------------------------------------------------------------------- /if_rest/api/routes/v1/service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/api/routes/v1/service.py -------------------------------------------------------------------------------- /if_rest/core/configs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/configs.py -------------------------------------------------------------------------------- /if_rest/core/converters/onnx_to_trt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/converters/onnx_to_trt.py -------------------------------------------------------------------------------- /if_rest/core/converters/remove_initializer_from_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/converters/remove_initializer_from_input.py -------------------------------------------------------------------------------- /if_rest/core/converters/reshape_onnx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/converters/reshape_onnx.py -------------------------------------------------------------------------------- /if_rest/core/face_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/face_model.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/detectors/abstract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/detectors/abstract.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/detectors/centerface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/detectors/centerface.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/detectors/common/nms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/detectors/common/nms.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/detectors/dbface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/detectors/dbface.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/detectors/retinaface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/detectors/retinaface.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/detectors/scrfd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/detectors/scrfd.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/detectors/yolov5_face.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/detectors/yolov5_face.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/exec_backends/abstract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/exec_backends/abstract.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/exec_backends/onnxrt_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/exec_backends/onnxrt_backend.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/exec_backends/triton_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/exec_backends/triton_backend.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/exec_backends/trt_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/exec_backends/trt_backend.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/exec_backends/trt_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/exec_backends/trt_loader.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/face_detectors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/face_detectors.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/face_processors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/face_processors.py -------------------------------------------------------------------------------- /if_rest/core/model_zoo/getter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/model_zoo/getter.py -------------------------------------------------------------------------------- /if_rest/core/processing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/processing.py -------------------------------------------------------------------------------- /if_rest/core/utils/download.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/utils/download.py -------------------------------------------------------------------------------- /if_rest/core/utils/download_google.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/utils/download_google.py -------------------------------------------------------------------------------- /if_rest/core/utils/fast_face_align.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/utils/fast_face_align.py -------------------------------------------------------------------------------- /if_rest/core/utils/helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/utils/helpers.py -------------------------------------------------------------------------------- /if_rest/core/utils/image_provider.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/core/utils/image_provider.py -------------------------------------------------------------------------------- /if_rest/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/logger.py -------------------------------------------------------------------------------- /if_rest/prepare_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/prepare_models.py -------------------------------------------------------------------------------- /if_rest/schemas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/schemas.py -------------------------------------------------------------------------------- /if_rest/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/if_rest/settings.py -------------------------------------------------------------------------------- /ifr_clients/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/ifr_clients/README.md -------------------------------------------------------------------------------- /ifr_clients/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/ifr_clients/__init__.py -------------------------------------------------------------------------------- /ifr_clients/common_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/ifr_clients/common_utils.py -------------------------------------------------------------------------------- /ifr_clients/ifr_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/ifr_clients/ifr_client.py -------------------------------------------------------------------------------- /ifr_clients/ifr_client_async.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/ifr_clients/ifr_client_async.py -------------------------------------------------------------------------------- /ifr_clients/schemas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/ifr_clients/schemas.py -------------------------------------------------------------------------------- /misc/images/api_sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/misc/images/api_sample.jpg -------------------------------------------------------------------------------- /misc/images/draw_detections.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/misc/images/draw_detections.jpg -------------------------------------------------------------------------------- /misc/nginx_conf/conf.d/default.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/misc/nginx_conf/conf.d/default.conf -------------------------------------------------------------------------------- /misc/test_images/Stallone.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/misc/test_images/Stallone.jpg -------------------------------------------------------------------------------- /misc/test_images/TH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/misc/test_images/TH.png -------------------------------------------------------------------------------- /misc/test_images/TH1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/misc/test_images/TH1.jpg -------------------------------------------------------------------------------- /misc/test_images/lumia.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/misc/test_images/lumia.jpg -------------------------------------------------------------------------------- /misc/test_images/mask.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/misc/test_images/mask.jpg -------------------------------------------------------------------------------- /models/models.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/models/models.json -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SthPhoenix/InsightFace-REST/HEAD/requirements.txt --------------------------------------------------------------------------------