fbnnb commited on
Commit
5f33b0b
Β·
verified Β·
1 Parent(s): f51a6fa

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +1 -1
gradio_app.py CHANGED
@@ -155,7 +155,7 @@ def get_image(image1, prompt, image2, dim_steps=50, ddim_eta=1., fs=None, seed=1
155
  image_tensor2 = transform(image2).unsqueeze(1) # [c,1,h,w]
156
  frame_tensor1 = repeat(image_tensor1, 'c t h w -> c (repeat t) h w', repeat=8)
157
  frame_tensor2 = repeat(image_tensor2, 'c t h w -> c (repeat t) h w', repeat=8)
158
- videos = torch.cat([frame_tensor1, frame_tensor2], dim=1)
159
  # frame_tensor = torch.cat([frame_tensor1, frame_tensor1], dim=1)
160
  # _, filename = os.path.split(file_list[idx*2])
161
 
 
155
  image_tensor2 = transform(image2).unsqueeze(1) # [c,1,h,w]
156
  frame_tensor1 = repeat(image_tensor1, 'c t h w -> c (repeat t) h w', repeat=8)
157
  frame_tensor2 = repeat(image_tensor2, 'c t h w -> c (repeat t) h w', repeat=8)
158
+ videos = torch.cat([frame_tensor1, frame_tensor2], dim=1).unsqueeze(0)
159
  # frame_tensor = torch.cat([frame_tensor1, frame_tensor1], dim=1)
160
  # _, filename = os.path.split(file_list[idx*2])
161