Update app.py
Browse files
app.py
CHANGED
|
@@ -134,7 +134,7 @@ def _build_camera_standard(RT: torch.Tensor, intrinsics: torch.Tensor):
|
|
| 134 |
], dim=-1)
|
| 135 |
|
| 136 |
def _default_render_cameras(batch_size: int = 1):
|
| 137 |
-
M =
|
| 138 |
radius = 1.5
|
| 139 |
elevation = 0
|
| 140 |
camera_positions = []
|
|
@@ -190,6 +190,7 @@ def generate_mesh(image, source_size=512, render_size=384, mesh_size=384, export
|
|
| 190 |
frames.append(frame_chunk['images_rgb'])
|
| 191 |
|
| 192 |
frames = torch.cat(frames, dim=1)
|
|
|
|
| 193 |
frames = (frames.permute(0, 2, 3, 1).cpu().numpy() * 255).astype(np.uint8)
|
| 194 |
|
| 195 |
video_path = "awesome_video.mp4"
|
|
|
|
| 134 |
], dim=-1)
|
| 135 |
|
| 136 |
def _default_render_cameras(batch_size: int = 1):
|
| 137 |
+
M = 80
|
| 138 |
radius = 1.5
|
| 139 |
elevation = 0
|
| 140 |
camera_positions = []
|
|
|
|
| 190 |
frames.append(frame_chunk['images_rgb'])
|
| 191 |
|
| 192 |
frames = torch.cat(frames, dim=1)
|
| 193 |
+
print(frames.shape)
|
| 194 |
frames = (frames.permute(0, 2, 3, 1).cpu().numpy() * 255).astype(np.uint8)
|
| 195 |
|
| 196 |
video_path = "awesome_video.mp4"
|