trt_pose icon indicating copy to clipboard operation
trt_pose copied to clipboard

No module named 'trt_pose.plugins'

Open ghost opened this issue 4 years ago • 10 comments

When I run it on Jupyter, it works but when I try to run it in PyCharm, with the same Python interpreter as the Jupyter, it returns to me this error. Someone knows why?

Thanks in advance

ghost avatar Apr 29 '20 13:04 ghost

same error i am also getting, while i try to run it in PyCharm. plus, iam also getting problem in running this project on jupyter. can u help me with it. @adriati

nakuldevkhajuria avatar May 08 '20 11:05 nakuldevkhajuria

same issue in Google Colab. @adriati can you tell me what changes you made to run it on Jupyter? I'm facing the same issue in Jupyter as well

Param-Raval avatar May 14 '20 07:05 Param-Raval

Try to move/copy the Jupyter notebook outside of trt_pose directory.

When I try to import trt_pose.coco inside trt_pose I have the same issue, but when I do it outside the directory the problem is solved.

lecramex avatar May 19 '20 13:05 lecramex

Same issue in Google colab. Don't get how to run it properly, since in colab it's only one notebook and manipulations with paths are tricky.

hfnvbh avatar Jun 09 '20 07:06 hfnvbh

Does anyone have a solve to this issue?

Sifat-Ahmed avatar Jul 22 '20 01:07 Sifat-Ahmed

Having the same problem here.... Anyone found a fix?

ljmd21 avatar Aug 18 '20 12:08 ljmd21

Having the same problem here.... Anyone found a fix?

Yes. One solve is that after installing don't run the code here. If you import it somewhere else, on another directory it will work. There is a trt_pose folder which contains plugins.cpp. If your root directory contains this trt_pose folder it will not work because interpreter gets confused.

Another way is to after installing you will see an .egg file. Inside that .egg file you will find a trt_pose folder where there is a plugins.py file. you can replace this trt_pose folder with the trt_pose folder from egg file.

The main problem is

trt_pose --tasks/human_pose -- trt_pose (***) --CMakeList.txt

the trt_pose folder with (***) causes all the problems. You can replace folder from the .egg trt_pose folder or you can try to import trt_pose.plugins in a different directory. Hope it'll work.

Sifat-Ahmed avatar Aug 18 '20 13:08 Sifat-Ahmed

Hello, i changed the directory in google colab, but still doent work.

ashith-bhandary avatar Oct 10 '21 19:10 ashith-bhandary

@Sifat-Ahmed I can't find the plugins.py file inside that .egg file in the folder trt_pose

i jut have the plugins.cpp

EmilianV52emi avatar Mar 06 '23 14:03 EmilianV52emi

@Sifat-Ahmed I can't find the plugins.py file inside that .egg file in the folder trt_pose

i jut have the plugins.cpp

Please mention your system details and things you have tried so that I reproduce the issue and help you.

Sifat-Ahmed avatar Mar 06 '23 16:03 Sifat-Ahmed