deepinsight / deepinsight/insightface
Difficulties to make the InspireFace Python test code to work
- Dominant language
- Python
- Stars
- 29.7k
- Forks
- 6.1k
- PR merge metrics
- No merged PRs in 30d
Description
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!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.