kimyoon-young / centerNet-deep-sort

realtime multiple people tracking (centerNet based person detector + deep sort algorithm with pytorch)
GNU General Public License v3.0
591 stars 148 forks source link

ModuleNotFoundError: No module named 'external.nms' #27

Open urbanczyks opened 4 years ago

urbanczyks commented 4 years ago

I have a problem with file path for the imports I did change the CENTERNET_PATH accordingly, like int the instruction CENTERNET_PATH = '/home/ai/Downloads/centerNet-deep-sort-master/CenterNet/src/lib/'

chnadell commented 4 years ago

I also have this issue. Seems like maybe some necessary file is no longer included. Perhaps there is a way to use pytorch's nms instead https://pytorch.org/docs/stable/torchvision/ops.html

chnadell commented 4 years ago

I think I figured out part of this. For me there were a bunch of files that pycharm indicated couldn't be found based on the default import paths in the project, so maybe there is just some __init__.py that is missing somewhere in the project. The missing imports referred to a bunch of stuff in centerNet-deep-sort/src/lib, including external.nms. Changing the import statements to properly point to these files, or writing a __init__ in the right locations should take care of the issue and allow python to find the files it's looking for.

ahmed-shariff commented 4 years ago

I am guessing you guys are running python 3.7 Try this:

cd CenterNet/src/lib/external
make
oucnkufk commented 4 years ago

have you solved this problem?

chnadell commented 4 years ago

Did you try pip installing the repo? I think for me that's all this was, I just forgot to pip install.