deepinsight / insightface

State-of-the-art 2D and 3D Face Analysis Project
https://insightface.ai
21.92k stars 5.26k forks source link

Difficulties to make the InspireFace Python test code to work #2596

Open mario-mlc opened 2 weeks ago

mario-mlc commented 2 weeks ago

Hello InspireFace Team and thank you for creating apparently an easier and better API for Face Recognition, Detection, Tracking etc.

I tried to test InspireFace on an x64 architecture (PC running Linux) targeting CPU execution. I followed the setup and compilation steps as per your README.md, I did compile all requirements without any issue, but Python can't find inspireface.param; import inspireface is successful, though.

Here are the detailed steps and outcomes:

Environment Setup: Docker container running Debian 10. Cloned InspireFace and the required 3rd party dependencies into the appropriate directory. OpenCV Version: The system already had OpenCV version 4.10 installed. MNN Compilation: Successfully compiled the MNN library provided in the 3rdparty directory. InspireFace Compilation: Ran command/build.sh to compile InspireFace. The build was successful without any errors. File Structure Discrepancy:

Expected Directory Structure: According to your documentation, the output should be in the inspireface-linux directory structured as:

inspireface-linux ├── include │ ├── herror.h │ └── inspireface.h └── lib └── libInspireFace.so Actual Directory Structure: Post-compilation, the structure included an additional InspireFace directory encapsulating the include and lib directories:

inspireface-linux ├── InspireFace │ ├── include │ │ ├── herror.h │ │ └── inspireface.h │ └── lib │ └── libInspireFace.so

The symlink for the .so file was successfully created for Python.

Python Script Issues: The Python script fails to import inspireface.param, a module your example script requires. However, the base inspireface module imports without any errors, indicating partial success in the setup. I am trying to run the Python code on README.md, which imports inspireface.param... Could you please provide some guidance (on properly setting up the Python bindings if actually needed, or point me to any additional documentation if setting up the symlink to .so library file is enough for Python for having successful imports)?

Thank you for your assistance!

mario-mlc commented 1 week ago

1 week and no answers... Did anyone try to install and configure InspireFace and got the same problems? (Python can't find Inspireface.param) and after compiling the directory structure has a InspireFace directory between inspireface-linux and the root of include and lib directories+ .so file?