open-mmlab / mmpose

OpenMMLab Pose Estimation Toolbox and Benchmark.
https://mmpose.readthedocs.io/en/latest/
Apache License 2.0
5.81k stars 1.24k forks source link

训练Lite-Hrnet代码报错 #724

Closed APeiZou closed 3 years ago

APeiZou commented 3 years ago

Traceback (most recent call last): File "tools/train.py", line 17, in from models import build_posenet File "/home/sa/workspace/zap/Lite-HRNet/models/init.py", line 1, in from .backbones import * # noqa File "/home/sa/workspace/zap/Lite-HRNet/models/backbones/init.py", line 1, in from .litehrnet import LiteHRNet File "/home/sa/workspace/zap/Lite-HRNet/models/backbones/litehrnet.py", line 12, in from mmpose.models.registry import BACKBONES
ModuleNotFoundError: No module named 'mmpose.models.registry'

innerlee commented 3 years ago

mmpose recently moved the location of registries. https://github.com/open-mmlab/mmpose/pull/669 . It was a breaking change. Downstream repos might be affected by this.

Maybe @ly015 could add some compatibility back?

ly015 commented 3 years ago

Will be fixed in #731