Closed cuge1995 closed 3 years ago
Hi, Can you give more details of your error because I can not reproduce the error you show. Thanks.
this is solved by
name = "".join( [chr(int(item)) for item in name] )
but another bug occur
File "predict_3dpose_mdm.py", line 173, in train
train_set_2d, test_set_2d, data_mean_2d, data_std_2d, dim_to_ignore_2d, dim_to_use_2d = data_utils.read_2d_predictions(actions, FLAGS.data_dir)
File "/home/cuge/Documents/money/human3d/src/data_utils.py", line 381, in read_2d_predictions
train_set = load_stacked_hourglass( data_dir, TRAIN_SUBJECTS, actions)
File "/home/cuge/Documents/money/human3d/src/data_utils.py", line 188, in load_stacked_hourglass
assert loaded_seqs == 8, "Expecting 8 sequences, found {0} instead. S:{1} {2}".format(loaded_seqs, subj, action )
AssertionError: Expecting 8 sequences, found 0 instead. S:1 Directions
solved by replace
'StackedHourglass/{0}*.h5' 'StackedHourglass***240/{0}*.h5'
src/cameras.py", line 118, in
name = "".join( [chr(item) for item in name] )
TypeError: only integer scalar arrays can be converted to a scalar index