Open kl2005ad opened 3 years ago
Problem solved. Installed maskrcnn-benchmark in a separate repo but with the same conda env. Set the PATHONPATH with the project dir.
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?
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?
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.
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'