Closed YuriiVavrynchuk closed 3 years ago
Hi, Yurii! Thanks for the feedback. The improvement is in the inference time for that part. Python code works slower.
Hello, Daniil. I have another problem with pose_extractor. I have added folder which contains pose_extractor.pyd file but error I get this message : #### Cannot load fast pose extraction, switched to legacy slow implementation. ####
. How can I solve this problem?
I use PyCharm with python 3.9.
from pose_extractor import extract_poses
command looks for pose_extractor folder with extract_poses file on it. As you can see, build library is added to PYTHONPATH(library root).
I have the following error if i just import pose_extractor in python.exe: ImportError: DLL load failed while importing pose_extractor: The specified module could not be found.
You should have added <path_to>/pose_extractor/build/
(see README). You can also add this path directly (e.g. on line 4) with sys.path.append(<path_to_build_directory>)
.
As you can see from the PyCharm screen, IDE understands that <path_to>/pose_extractor/build/
is a library root. Problem is in pose_extractor.pyd file(I have built it manually in x64 configuration using VS 2019 (all 3 builds were successul)). Could you send me your pose_extractor.pyd please. I'm sure it will help to solve this issue.
Best regards, Yurii
I do not have any. You can try to comment out try/except
block to see the real error message. Possibly some other libs are missed.
I import built pose_extractor.pyd by python.exe without any try/except
. But I get this problem
>>> import pose_extractor
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed while importing pose_extractor: The specified module could not be found.
I means that problem is in this lib. This lib is visible for python becouse if I import something random, the problem will be another:
>>> import dfsgfsdgsadg
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'dfsgfsdgsadg'
Please, can you sand me pose_extractor.pyd file? I will be very grateful.
Unfortunately, the error message did not add any new information. I think, that OpenCV dll possibly depends from other libraries. Did you update the PATH environment variable, as described here?
Yes, I mentioned it in the first message.
If so, I have no more ideas.
Ok, closing.
Hello, @Daniil-Osokin ! I have found some problems with prerequisites installation. I hope it will be useful for you:
I hope my notes will help you and the others who will try out your solution. I also have one question to you: which improvement does pose_extractor give to your project. As I understand, this is something like a boost but I don`t understand it.