siam-mot icon indicating copy to clipboard operation
siam-mot copied to clipboard

Install maskrcnn-benchmark in the siammot env or in a seperate env?

Open kl2005ad opened this issue 3 years ago • 4 comments

Confused by the install instructions. If I install everything except maskrcnn-benchmark as the instructions showed, I got the following errors when running the demo on a long video (not sure if it is caused by the lack of maskrcnn-benchmark):

Traceback (most recent call last): File "demos/demo.py", line 5, in from demos.demo_inference import DemoInference ModuleNotFoundError: No module named 'demos'

kl2005ad avatar Aug 04 '21 19:08 kl2005ad

Problem solved. Installed maskrcnn-benchmark in a separate repo but with the same conda env. Set the PATHONPATH with the project dir.

kl2005ad avatar Aug 17 '21 17:08 kl2005ad

Problem solved. Installed maskrcnn-benchmark in a separate repo but with the same conda env. Set the PATHONPATH with the project dir.

can this code track mutil classes object?

JAYCHOU2020 avatar Aug 20 '21 01:08 JAYCHOU2020

Problem solved. Installed maskrcnn-benchmark in a separate repo but with the same conda env. Set the PATHONPATH with the project dir.

Can you please explain in more detail?

  • When you said "maskrcnn-benchmark in a separate repo" do you mean perform the installation steps of maskrcnn-benchmark outside of the siam-mot folder?

  • I am using Ubuntu. What I need to do for the "Set the PATHONPATH with the project dir." part?

AydinAlptug avatar Aug 20 '21 12:08 AydinAlptug

Confused by the install instructions. If I install everything except maskrcnn-benchmark as the instructions showed, I got the following errors when running the demo on a long video (not sure if it is caused by the lack of maskrcnn-benchmark):

Traceback (most recent call last): File "demos/demo.py", line 5, in from demos.demo_inference import DemoInference ModuleNotFoundError: No module named 'demos'

The library can be installed in the same environment. I see no reason why it should not be. And considering your problem with ModuleNotFoundError: No module named 'demos' error, you do not necessarily have to change the PYTHONPATH value. All you need is to run the script as a module from within the project root directory, so for example:

python -m demos.demo --demo-video <path> --track-class person_vehicle --output-path <path>

The trouble with ModuleNotFoundError is not specific to this project. It is related to how Python itself manages the execution of scripts.

mondrasovic avatar Sep 04 '21 07:09 mondrasovic