leeyegy / SimCC

[ECCV'2022 Oral] PyTorch implementation for: SimCC: a Simple Coordinate Classification Perspective for Human Pose Estimation (http://arxiv.org/abs/2107.03332). Old name: SimDR
317 stars 29 forks source link

TypeError: object of type 'NoneType' has no len() #21

Closed flomok closed 1 year ago

flomok commented 1 year ago

Traceback (most recent call last): File "E:/python_console/pose_2/SimCC/tools/train.py", line 258, in main() File "E:/python_console/pose_2/SimCC/tools/train.py", line 82, in main update_config(cfg, args) File "E:\python_console\pose_2\SimCC\tools..\lib\config\default.py", line 147, in update_config cfg.merge_from_list(args.opts) File "E:\ana\envs\ptorch\lib\site-packages\yacs\config.py", line 224, in merge_from_list len(cfg_list) % 2 == 0, TypeError: object of type 'NoneType' has no len()

flomok commented 1 year ago

please,I am a little anxious, which wise man to help me!

leeyegy commented 1 year ago

It seems that your cfg_list may be None, you may check the content of cfg_list~

flomok commented 1 year ago

Thanks for your reply, but the files under lib/config are all exist, and in train.py the args function also passes in the "-- cfg" parameter. How can I see if the "cfg list" is empty?

flomok commented 1 year ago

I have already solved, may be the problem of the download file, thank you!