open-mmlab / mmaction2

OpenMMLab's Next Generation Video Understanding Toolbox and Benchmark
https://mmaction2.readthedocs.io
Apache License 2.0
4.29k stars 1.25k forks source link

[Bug] ModuleNotFoundError: No module named 'mmaction.registry' #2845

Open dqj5182 opened 6 months ago

dqj5182 commented 6 months ago

Branch

main branch (1.x version, such as v1.0.0, or dev-1.x branch)

Prerequisite

Environment

Python 3.9.19 torch 1.12.0

Describe the bug

Traceback (most recent call last): File "/home/danieljung0121/mmaction2/tools/train.py", line 9, in from mmaction.registry import RUNNERS ModuleNotFoundError: No module named 'mmaction.registry'

Reproduces the problem - code sample

python tools/train.py configs/skeleton/posec3d/slowonly_r50_u48_240e_ntu120_xsub_keypoint.py --work-dir work_dirs/slowonly_r50_u48_240e_ntu120_xsub_keypoint --validate --test-best --gpus 2 --seed 0 --deterministic

Reproduces the problem - command or script

No response

Reproduces the problem - error message

No response

Additional information

No response

APOLOGIZ-E commented 5 months ago

Hi I had this problem too ,did you solve it?

dqj5182 commented 4 months ago

I think I did solve this because now I can run the code. But, I am not sure how I solved it. I think this was more of a general problem (not restricted to this code) that could be solved relatively easily.