ROMP icon indicating copy to clipboard operation
ROMP copied to clipboard

How to value?

Open QingLuogwj opened this issue 3 years ago • 2 comments

你好, import numpy as np import torch test = np.load('./00000000.npz',allow_pickle=True) print(test.files) print(test['results']['smpl_thetas'])我想用这个取值,为何报了这个错 IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

QingLuogwj avatar Apr 29 '22 07:04 QingLuogwj

results = np.load('./00000000.npz',allow_pickle=True)['results'][()] results['smpl_thetas'] 我加一下这方面的描述

Arthur151 avatar Apr 29 '22 08:04 Arthur151

The blogger is so kind and detailed. Thank you

QingLuogwj avatar Apr 29 '22 08:04 QingLuogwj