Closed PureHing closed 1 year ago
Hi, thanks for trying mmpose 1.x
. I suggest uninstalling both of mmcv-full
and mmcv
first, and use:
pip install -U openmim
mim install "mmcv>=2.0.0rc1"
to reinstall mmcv
@Tau-J
The first case is solved.
still have this error:
KeyError: "class TopdownPoseEstimator in mmpose/models/pose_estimators/topdown.py: 'PoseDataPreprocessor is not in the model registry. Please check whether the value of PoseDataPreprocessor is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/tutorials/config.html#import-custom-python-modules'"
, But there is no problems when I training model.
BTW, tools/deployment
this folder does not seem to be updated to the 1.x version, and the same interface as the old version, eg. init_pose_model
, but only __all__ = ['init_model', 'inference_topdown']
in 1.x
Sorry I don't understand what does there's no problems when training model
mean. As for tools/deployment
, in mmpose 1.x
, we recommend users to use mmdeploy
to conduct deployment.
I have change to V0.29.0. Thanks!
@ly015 @PureHing I meet the same questions
Traceback (most recent call last): File "demo/topdown_demo_with_mmdet.py", line 293, in <module> main() File "demo/topdown_demo_with_mmdet.py", line 183, in main pose_estimator = init_pose_estimator( File "/home/user/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmpose/apis/inference.py", line 101, in init_model model = build_pose_estimator(config.model) File "/home/user/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmpose/models/builder.py", line 35, in build_pose_estimator return POSE_ESTIMATORS.build(cfg) File "/home/user/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/registry/registry.py", line 548, in build return self.build_func(cfg, *args, **kwargs, registry=self) File "/home/user/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 250, in build_model_from_cfg return build_from_cfg(cfg, registry, default_args) File "/home/user/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 144, in build_from_cfg raise type(e)( KeyError: "class
TopdownPoseEstimatorin mmpose/models/pose_estimators/topdown.py: 'mmcls.VisionTransformer is not in the model registry. Please check whether the value of
mmcls.VisionTransformeris correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'"
finally, how to solve it? I use mmdeploy to conduct deployment.
@Tau-J Hi,
pip list | grep mm
:Run
python tools/deployment/pytorch2onnx.py configs/** **.pth
Some errors:AssertionError: MMCV==1.6.2 is used but incompatible. Please install mmcv>=2.0.0rc0, <=2.1.0.
ifpip uninstall mmcv-full
here raiseAttributeError: module 'mmcv' has no attribute '__version__'
here raiseModuleNotFoundError: No module named 'mmcv.image'
KeyError: "class TopdownPoseEstimator in mmpose/models/pose_estimators/topdown.py: 'PoseDataPreprocessor is not in the model registry. Please check whether the value of PoseDataPreprocessor is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/tutorials/config.html#import-custom-python-modules'"