yanranxiaoxi commited on
Commit
cb249aa
·
verified ·
1 Parent(s): 3b20774

chore: use np.concatenate

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -184,7 +184,10 @@ def generate_mesh(image, source_size=512, render_size=384, mesh_size=512, export
184
 
185
  with torch.no_grad():
186
  planes = model_wrapper.forward(image, source_camera)
187
- planes_pil_image = ToPILImage()(planes[0])
 
 
 
188
 
189
  if export_mesh:
190
  grid_out = model_wrapper.model.synthesizer.forward_grid(planes=planes, grid_size=mesh_size)
 
184
 
185
  with torch.no_grad():
186
  planes = model_wrapper.forward(image, source_camera)
187
+ planes_pil_image = np.concatenate([
188
+ np.concatenate([planes[1], planes[2]], axis=1),
189
+ np.concatenate([planes[3], planes[0]], axis=1),
190
+ ], axis=0)
191
 
192
  if export_mesh:
193
  grid_out = model_wrapper.model.synthesizer.forward_grid(planes=planes, grid_size=mesh_size)