MCPcopy
hub / github.com/OpenMotionLab/MotionGPT / draw_to_batch

Function draw_to_batch

mGPT/render/matplot/plot_3d_global.py:138–151  ·  view source on GitHub ↗
(smpl_joints_batch, title_batch=None, outname=None)

Source from the content-addressed store, hash-verified

136
137
138def draw_to_batch(smpl_joints_batch, title_batch=None, outname=None):
139
140 batch_size = len(smpl_joints_batch)
141 out = []
142 for i in range(batch_size):
143 out.append(
144 plot_3d_motion([
145 smpl_joints_batch[i], None,
146 title_batch[i] if title_batch is not None else None
147 ]))
148 if outname is not None:
149 imageio.mimsave(outname[i], np.array(out[-1]), duration=50)
150 out = torch.stack(out, axis=0)
151 return out

Callers

nothing calls this directly

Calls 1

plot_3d_motionFunction · 0.70

Tested by

no test coverage detected