Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kl2005ad opened this issue Aug 4, 2021 · 4 comments
Open

Comments

@kl2005ad
Copy link

kl2005ad commented Aug 4, 2021

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
Copy link
Author

kl2005ad commented Aug 17, 2021

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

@JAYCHOU2020
Copy link

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?

@AydinAlptug
Copy link

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?

@mondrasovic
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants