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

AlphaPose v0.3.0 - No module named 'detector' #27

Closed
Ritchizh opened this issue May 11, 2020 · 2 comments
Closed

AlphaPose v0.3.0 - No module named 'detector' #27

Ritchizh opened this issue May 11, 2020 · 2 comments

Comments

@Ritchizh
Copy link

Ritchizh commented May 11, 2020

Hi! When running the notebook 'AlphaPhose v0.3.0' as it is, at performing detection on the cut 'video.avi', the line:

!cd {project_name} && python3 scripts/demo_inference.py --sp --video ../video.avi --outdir ../ --save_video --checkpoint ../{pretrained_model_path} --cfg ../{pretrained_model_config_path}

I get the error:

File "scripts/demo_inference.py", line 12, in <module>
    from detector.apis import get_detector
ModuleNotFoundError: No module named 'detector'

So, it tries to run 'demo_inference.py', but can't do the imports.
Could you please clarify what could be the reason for this error? Should I add some paths to the working directory?
(* the other notebook 'AlphaPose.ipynb' runs fine)

@Ritchizh Ritchizh changed the title AlphaPhose v0.3.0 - No module named 'detector' AlphaPose v0.3.0 - No module named 'detector' May 11, 2020
@tugstugi
Copy link
Owner

tugstugi commented May 11, 2020

Colab uses now PyTorch 1.5 which makes trouble for AlphaPose. I have downgraded the PyTorch version. Should be fixed now by c2278f3

@adel6666
Copy link

I have the same error while executing the code locally on my machine, is there another solution for me please?

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

3 participants