Fabrice-TIERCELIN commited on
Commit
e4557c5
·
verified ·
1 Parent(s): ee44bdd
Files changed (1) hide show
  1. app.py +5 -27
app.py CHANGED
@@ -780,6 +780,8 @@ def worker_start_end(input_image, end_image, image_position, prompts, n_prompt,
780
  print(f'Decoded. Pixel shape {history_pixels.shape}')
781
 
782
  stream.output_queue.push(('file', output_filename))
 
 
783
 
784
  for latent_padding in latent_paddings:
785
  is_last_section = latent_padding == 0
@@ -1672,10 +1674,10 @@ with block:
1672
  label = "Examples from start and end frames",
1673
  examples = [
1674
  [
1675
- "./img_examples/Example2.webp", # input_image
1676
- "./img_examples/Example2.webp", # end_image
1677
  0, # image_position
1678
- "A man on the left and a woman on the right face each other ready to start a conversation, large space between the persons, full view, full-length view, 3D, pixar, 3D render, CGI. The man talks and the woman listens; A man on the left and a woman on the right face each other ready to start a conversation, large space between the persons, full view, full-length view, 3D, pixar, 3D render, CGI. The woman talks, the man stops talking and the man listens; A man on the left and a woman on the right face each other ready to start a conversation, large space between the persons, full view, full-length view, 3D, pixar, 3D render, CGI. The woman talks and the man listens",
1679
  "start_end", # generation_mode
1680
  "Missing arm, long hand, unrealistic position, impossible contortion, visible bone, muscle contraction, poorly framed, blurred, blurry, over-smooth", # n_prompt
1681
  True, # randomize_seed
@@ -1695,30 +1697,6 @@ with block:
1695
  16, # mp4_crf
1696
  30 # fps_number
1697
  ],
1698
- [
1699
- "./img_examples/Example2.webp", # input_image
1700
- "./img_examples/Example2.webp", # end_image
1701
- 0, # image_position
1702
- "A man on the left and a woman on the right face each other ready to start a conversation, large space between the persons, full view, full-length view, 3D, pixar, 3D render, CGI. The man talks and the woman listens; A man on the left and a woman on the right face each other ready to start a conversation, large space between the persons, full view, full-length view, 3D, pixar, 3D render, CGI. The woman talks, the man stops talking and the man listens; A man on the left and a woman on the right face each other ready to start a conversation, large space between the persons, full view, full-length view, 3D, pixar, 3D render, CGI. The woman talks and the man listens",
1703
- "start_end", # generation_mode
1704
- "Missing arm, long hand, unrealistic position, impossible contortion, visible bone, muscle contraction, poorly framed, blurred, blurry, over-smooth", # n_prompt
1705
- True, # randomize_seed
1706
- 42, # seed
1707
- True, # auto_allocation
1708
- 180, # allocation_time
1709
- 672, # resolution
1710
- 1, # total_second_length
1711
- 9, # latent_window_size
1712
- 30, # steps
1713
- 1.0, # cfg
1714
- 10.0, # gs
1715
- 0.0, # rs
1716
- 6, # gpu_memory_preservation
1717
- False, # enable_preview
1718
- True, # use_teacache
1719
- 16, # mp4_crf
1720
- 30 # fps_number
1721
- ],
1722
  ],
1723
  run_on_click = True,
1724
  fn = process,
 
780
  print(f'Decoded. Pixel shape {history_pixels.shape}')
781
 
782
  stream.output_queue.push(('file', output_filename))
783
+
784
+ return [total_generated_latent_frames, history_latents, history_pixels]
785
 
786
  for latent_padding in latent_paddings:
787
  is_last_section = latent_padding == 0
 
1674
  label = "Examples from start and end frames",
1675
  examples = [
1676
  [
1677
+ "./img_examples/Example5.webp", # input_image
1678
+ "./img_examples/Example6.webp", # end_image
1679
  0, # image_position
1680
+ "A woman gets off a train, viewed from the outside, photorealistic, realistic, amateur photography, midday, insanely detailed, 8k",
1681
  "start_end", # generation_mode
1682
  "Missing arm, long hand, unrealistic position, impossible contortion, visible bone, muscle contraction, poorly framed, blurred, blurry, over-smooth", # n_prompt
1683
  True, # randomize_seed
 
1697
  16, # mp4_crf
1698
  30 # fps_number
1699
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1700
  ],
1701
  run_on_click = True,
1702
  fn = process,