fix read smpl bug
This commit is contained in:
parent
0175f07290
commit
de973d4047
@ -152,6 +152,8 @@ def read_smpl(outname):
|
||||
assert os.path.exists(outname), outname
|
||||
datas = read_json(outname)
|
||||
outputs = []
|
||||
if isinstace(datas, dict):
|
||||
datas = datas['annots']
|
||||
for data in datas:
|
||||
for key in ['Rh', 'Th', 'poses', 'shapes']:
|
||||
data[key] = np.array(data[key])
|
||||
@ -255,4 +257,4 @@ if __name__ == '__main__':
|
||||
|
||||
# Only exit to OS when we are not running in Blender GUI
|
||||
if bpy.app.background:
|
||||
sys.exit(exit_status)
|
||||
sys.exit(exit_status)
|
||||
|
Loading…
Reference in New Issue
Block a user