INNER CODE UNIT · Python
xsteps4
TimoBolkart/voca · edit_sequences.py:196
xsteps4 = np.arange(3*num_frames//4, num_frames)
model_parms[:, pose_idx] = np.hstack((np.interp(xsteps1, x1, y1),
np.interp(xsteps2, x2, y2),
np.interp(xsteps3, x3, y3),
np.interp(xsteps4, x4, y4)))
predicted_vertices = np.zeros((num_frames, model.v_template.shape[0], model.v_template.shape[1]))
for frame_idx in range(num_frames):
model.v_template[:] = Mesh(filename=sequence_fnames[frame_idx]).v
model.pose[:] = model_parms[frame_idx]
predicted_vertices[frame_idx] = model.r
output_sequence_meshes(predicted_vertices, Mesh(model.v_template, model.f), out_path, uv_template_fname=uv_template_fname, texture_img_fname=texture_img_fname)
if(args.mode == 'shape'):
pc_idx = args.index