Fabrice-TIERCELIN commited on
Commit
ef207cb
·
verified ·
1 Parent(s): b1addc9
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -749,17 +749,13 @@ def worker_video(input_video, prompts, n_prompt, seed, batch, resolution, total_
749
  split_idx = 1
750
  if clean_latents_4x.shape[2] < 2: # 20250507 pftq: edge case for <=1 sec videos
751
  print("£££££££££££££££££££££££££££££££££££ clean_latents_4x")
752
- clean_latents_4x_shape = clean_latents_4x.shape
753
- clean_latents_4x_shape[2] = 2
754
- clean_latents_4x = clean_latents_4x.expand(clean_latents_4x_shape)
755
 
756
  if num_2x_frames > 0 and split_idx < len(splits):
757
  clean_latents_2x = splits[split_idx]
758
  if clean_latents_2x.shape[2] < 2: # 20250507 pftq: edge case for <=1 sec videos
759
  print("£££££££££££££££££££££££££££££££££££ clean_latents_2x")
760
- clean_latents_2x_shape = clean_latents_2x.shape
761
- clean_latents_2x_shape[2] = 2
762
- clean_latents_2x = clean_latents_2x.expand(clean_latents_2x_shape)
763
  split_idx += 1
764
  elif clean_latents_2x.shape[2] < 2: # 20250507 pftq: edge case for <=1 sec videos
765
  clean_latents_2x = clean_latents_4x
 
749
  split_idx = 1
750
  if clean_latents_4x.shape[2] < 2: # 20250507 pftq: edge case for <=1 sec videos
751
  print("£££££££££££££££££££££££££££££££££££ clean_latents_4x")
752
+ clean_latents_4x = clean_latents_4x.expand(-1, -1, 2, -1, -1)
 
 
753
 
754
  if num_2x_frames > 0 and split_idx < len(splits):
755
  clean_latents_2x = splits[split_idx]
756
  if clean_latents_2x.shape[2] < 2: # 20250507 pftq: edge case for <=1 sec videos
757
  print("£££££££££££££££££££££££££££££££££££ clean_latents_2x")
758
+ clean_latents_2x = clean_latents_2x.expand(-1, -1, 2, -1, -1)
 
 
759
  split_idx += 1
760
  elif clean_latents_2x.shape[2] < 2: # 20250507 pftq: edge case for <=1 sec videos
761
  clean_latents_2x = clean_latents_4x