Fabrice-TIERCELIN commited on
Commit
b2e8b52
·
verified ·
1 Parent(s): c99124d
Files changed (1) hide show
  1. app.py +43 -1
app.py CHANGED
@@ -997,7 +997,10 @@ with block:
997
 
998
  with gr.Row():
999
  no_resize = gr.Checkbox(label='Force Original Video Resolution (no Resizing)', value=False, info='Might run out of VRAM (720p requires > 24GB VRAM).')
1000
- resolution = gr.Number(label="Resolution (max width or height)", value=640, minimum=1, precision=0)
 
 
 
1001
 
1002
  # 20250506 pftq: Reduced default distilled guidance scale to improve adherence to input video
1003
  cfg = gr.Slider(label="CFG Scale", minimum=1.0, maximum=32.0, value=1.0, step=0.01, info='Use this instead of Distilled for more detail/control + Negative Prompt (make sure Distilled set to 1). Doubles render time. Should not change.')
@@ -1081,6 +1084,24 @@ with block:
1081
  with gr.Row(elem_id="image_examples", visible=False):
1082
  gr.Examples(
1083
  examples = [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1084
  [
1085
  "./img_examples/Example1.png", # input_image
1086
  "View of the sea as far as the eye can see, from the seaside, a piece of land is barely visible on the horizon at the middle, the sky is radiant, reflections of the sun in the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
@@ -1128,6 +1149,27 @@ with block:
1128
  with gr.Row(elem_id="video_examples", visible=False):
1129
  gr.Examples(
1130
  examples = [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1131
  [
1132
  "./img_examples/Example1.mp4", # input_video
1133
  "View of the sea as far as the eye can see, from the seaside, a piece of land is barely visible on the horizon at the middle, the sky is radiant, reflections of the sun in the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
 
997
 
998
  with gr.Row():
999
  no_resize = gr.Checkbox(label='Force Original Video Resolution (no Resizing)', value=False, info='Might run out of VRAM (720p requires > 24GB VRAM).')
1000
+ resolution = gr.Dropdown([
1001
+ 640,
1002
+ 672
1003
+ ], label="Resolution (max width or height)")
1004
 
1005
  # 20250506 pftq: Reduced default distilled guidance scale to improve adherence to input video
1006
  cfg = gr.Slider(label="CFG Scale", minimum=1.0, maximum=32.0, value=1.0, step=0.01, info='Use this instead of Distilled for more detail/control + Negative Prompt (make sure Distilled set to 1). Doubles render time. Should not change.')
 
1084
  with gr.Row(elem_id="image_examples", visible=False):
1085
  gr.Examples(
1086
  examples = [
1087
+ [
1088
+ "./img_examples/Example1.png", # input_image
1089
+ "View of the sea as far as the eye can see, from the seaside, a piece of land is barely visible on the horizon at the middle, the sky is radiant, reflections of the sun in the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
1090
+ "image", # generation_mode
1091
+ "Missing arm, unrealistic position, impossible contortion, blurred, blurry", # n_prompt
1092
+ True, # randomize_seed
1093
+ 42, # seed
1094
+ 672, # resolution
1095
+ 1, # total_second_length
1096
+ 9, # latent_window_size
1097
+ 25, # steps
1098
+ 1.0, # cfg
1099
+ 10.0, # gs
1100
+ 0.0, # rs
1101
+ 6, # gpu_memory_preservation
1102
+ False, # use_teacache
1103
+ 16 # mp4_crf
1104
+ ],
1105
  [
1106
  "./img_examples/Example1.png", # input_image
1107
  "View of the sea as far as the eye can see, from the seaside, a piece of land is barely visible on the horizon at the middle, the sky is radiant, reflections of the sun in the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
 
1149
  with gr.Row(elem_id="video_examples", visible=False):
1150
  gr.Examples(
1151
  examples = [
1152
+ [
1153
+ "./img_examples/Example1.mp4", # input_video
1154
+ "View of the sea as far as the eye can see, from the seaside, a piece of land is barely visible on the horizon at the middle, the sky is radiant, reflections of the sun in the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
1155
+ "Missing arm, unrealistic position, blurred, blurry", # n_prompt
1156
+ True, # randomize_seed
1157
+ 42, # seed
1158
+ 1, # batch
1159
+ 672, # resolution
1160
+ 1, # total_second_length
1161
+ 9, # latent_window_size
1162
+ 25, # steps
1163
+ 1.0, # cfg
1164
+ 10.0, # gs
1165
+ 0.0, # rs
1166
+ 6, # gpu_memory_preservation
1167
+ False, # use_teacache
1168
+ False, # no_resize
1169
+ 16, # mp4_crf
1170
+ 5, # num_clean_frames
1171
+ default_vae
1172
+ ],
1173
  [
1174
  "./img_examples/Example1.mp4", # input_video
1175
  "View of the sea as far as the eye can see, from the seaside, a piece of land is barely visible on the horizon at the middle, the sky is radiant, reflections of the sun in the water, photorealistic, realistic, intricate details, 8k, insanely detailed",