deepinsight / deepinsight/insightface

AttributeError when running Retinaface function execution

Open
#1,599 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29.7k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

I follow the instructions of "READ FILE.txt"
Type 'Make' is to execute commands in MAKEFILE in retinaface directory?
-----------------
When I run the commands in MAKEFILE on terminal.
With :
python setup.py build_ext --inplace
----------------
The error I got:
PS E:\DataTraining\insightface-master\insightface-master\detection\RetinaFace\rcnn\cython> python setup.py build_ext --inplace
Skipping GPU_NMS
running build_ext
Traceback (most recent call last):
File "setup.py", line 164, in
cmdclass={'build_ext': custom_build_ext},
File "C:\Users\nhatd\AppData\Local\Programs\Python\Python36\lib\site-packages\setuptools\__init__.py", line 143, in setup
return distutils.core.setup(**attrs)
File "C:\Users\nhatd\AppData\Local\Programs\Python\Python36\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\nhatd\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\nhatd\AppData\Local\Programs\Python\Python36\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\nhatd\AppData\Local\Programs\Python\Python36\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "C:\Users\nhatd\AppData\Local\Programs\Python\Python36\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "setup.py", line 121, in build_extensions
customize_compiler_for_nvcc(self.compiler)
File "setup.py", line 94, in customize_compiler_for_nvcc
default_compiler_so = self.compiler_so
AttributeError: 'MSVCCompiler' object has no attribute 'compiler_so'
------------------------------------
and with the command:
cd rcnn/pycocotools/; python setup.py build_ext --inplace
---------------------------------------
then the error i get:
PS E:\DataTraining\insightface-master\insightface-master\detection\RetinaFace\rcnn\pycocotools> python setup.py build_ext --inplace
Compiling _mask.pyx because it depends on C:\Users\nhatd\AppData\Local\Programs\Python\Python36\lib\site-packages\Cython\Includes\numpy\__init__.pxd.
[1/1] Cythonizing _mask.pyx
C:\Users\nhatd\AppData\Local\Programs\Python\Python36\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2) . This will change in a later release! File: E:\DataTraining\insightface-master\insightface-master\detection\RetinaFace\rcnn\pycocotools\_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
running build_ext
building '_mask' extension
error: Unable to find vcvarsall.bat
-----------------------------------------------------------------------
before that i used :'pip install cython' to install cython module.
With the above problems I need to do?.
Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with READ FILE.txt and the Makefile instructions, then inspect detection/RetinaFace/rcnn/setup.py and rcnn/pycocotools/setup.py around the reported build commands. Reproduce both Windows failures and determine whether the documented build steps support the reported Python and compiler environment. Done means the RetinaFace extensions build successfully on the supported setup, or the documentation clearly states the required environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.