Spaces:
Running
on
Zero
Running
on
Zero
chore: use np.concatenate
Browse files
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 =
|
|
|
|
|
|
|
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)
|