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

Function load_ply

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

Source from the content-addressed store, hash-verified

839
840
841def load_ply(file_name):
842 plydata = PlyData.read(file_name)
843 x = plydata['vertex']['x']
844 y = plydata['vertex']['y']
845 z = plydata['vertex']['z']
846 v = np.stack((x, y, z), 1)
847 return v
848
849def resize_bbox(bbox, scale=1.2):
850 if isinstance(bbox, list):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected