bill-jiang commited on
Commit
4d2b5fc
1 Parent(s): f0a0274

Fix render

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -104,8 +104,9 @@ def render_motion(data, feats, method='fast'):
104
  np.save(output_npy_path, feats)
105
  np.save(output_joints_path, data)
106
 
107
- cmd3 = ["xvfb-run", "python", "-m", "render", "--joints_path", output_joints_path, "--method", method, "--output_mp4_path", output_mp4_path, "--smpl_model_path", cfg.RENDER.SMPL_MODEL_PATH]
108
- subprocess.run(cmd3)
 
109
 
110
  return output_mp4_path, video_fname, output_npy_path, feats_fname
111
 
 
104
  np.save(output_npy_path, feats)
105
  np.save(output_joints_path, data)
106
 
107
+ render_cmd = ["xvfb-run", "--server-args='-screen 0 1024x768x24'", "python", "-m", "render", "--joints_path", output_joints_path, "--method", method, "--output_mp4_path", output_mp4_path, "--smpl_model_path", cfg.RENDER.SMPL_MODEL_PATH]
108
+ os.system(render_cmd)
109
+ # subprocess.run(cmd3)
110
 
111
  return output_mp4_path, video_fname, output_npy_path, feats_fname
112