Anonymous commited on
Commit
b135a58
1 Parent(s): de95d87
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -127,7 +127,7 @@ def infer(prompt):
127
  x_T_total=x_T_total,
128
  )
129
 
130
- video_path = "/tmp/output.mp4"
131
  vid_tensor = batch_samples[0]
132
  video = vid_tensor.detach().cpu()
133
  video = torch.clamp(video.float(), -1.0, 1.0)
@@ -140,7 +140,7 @@ def infer(prompt):
140
  grid = torch.stack(frame_grids, dim=0) # stack in temporal dim [t, 3, n*h, w]
141
  grid = (grid + 1.0) / 2.0
142
  grid = (grid * 255).to(torch.uint8).permute(0, 2, 3, 1)
143
- print(grid.shape)
144
  torchvision.io.write_video(
145
  video_path,
146
  grid,
 
127
  x_T_total=x_T_total,
128
  )
129
 
130
+ video_path = "output.mp4"
131
  vid_tensor = batch_samples[0]
132
  video = vid_tensor.detach().cpu()
133
  video = torch.clamp(video.float(), -1.0, 1.0)
 
140
  grid = torch.stack(frame_grids, dim=0) # stack in temporal dim [t, 3, n*h, w]
141
  grid = (grid + 1.0) / 2.0
142
  grid = (grid * 255).to(torch.uint8).permute(0, 2, 3, 1)
143
+
144
  torchvision.io.write_video(
145
  video_path,
146
  grid,