Assertion Error. assert 'stats_info' in dataset_info._dataset_info AssertionError #1551
Unanswered
smahmood00
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting the following assertion error:
File "Human_3D.py", line 57, in
pose_lift_results=inference_pose_lifter_model(pose_model_3d,pose_results, dataset=dataset,dataset_info=dataset_info)
File "/research/d4/spc/smahmood0/miniconda3/envs/openmmlab/lib/python3.8/site-packages/mmpose/apis/inference_3d.py", line 262, in inference_pose_lifter_model
assert 'stats_info' in dataset_info._dataset_info
AssertionError
The code for pose lifting is as shown below
pose_config_3d='mmpose/configs/body/3d_kpt_sview_rgb_img/pose_lift/mpi_inf_3dhp/simplebaseline3d_mpi-inf-3dhp.py'
pose_checkpoint_3d='mmpose/simplebaseline3d_mpi-inf-3dhp-b75546f6_20210603.pth'
pose_model_3d=init_pose_model(pose_config_3d,pose_checkpoint_3d)
dataset = pose_model_3d.cfg.data['test']['type']
dataset_info=pose_model_3d.cfg.data['test'].get('dataset_info', None)
#print('dataset info: ',dataset_info)
if dataset_info is None:
warnings.warn(
'Please set
dataset_info
in the config.''Check #663 for details.',
DeprecationWarning)
else:
dataset_info = DatasetInfo(dataset_info)
pose_lift_results=inference_pose_lifter_model(pose_model_3d,pose_results, dataset=dataset,dataset_info=dataset_info)
Your help will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions