MCPcopy Create free account
hub / github.com/MotrixLab/ADHMR / load_obj

Function load_obj

HMR-Scorer/common/utils/preprocessing.py:830–838  ·  view source on GitHub ↗
(file_name)

Source from the content-addressed store, hash-verified

828
829
830def load_obj(file_name):
831 v = []
832 obj_file = open(file_name)
833 for line in obj_file:
834 words = line.split(' ')
835 if words[0] == 'v':
836 x, y, z = float(words[1]), float(words[2]), float(words[3])
837 v.append(np.array([x, y, z]))
838 return np.stack(v)
839
840
841def load_ply(file_name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected