Fabrice-TIERCELIN commited on
Commit
6bc0ef4
·
verified ·
1 Parent(s): 7553049

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +63 -4
app.py CHANGED
@@ -1118,12 +1118,12 @@ with block:
1118
  672, # resolution
1119
  1, # total_second_length
1120
  9, # latent_window_size
1121
- 25, # steps
1122
  1.0, # cfg
1123
  10.0, # gs
1124
  0.0, # rs
1125
  6, # gpu_memory_preservation
1126
- True, # use_teacache
1127
  16 # mp4_crf
1128
  ],
1129
  [
@@ -1165,12 +1165,12 @@ with block:
1165
  672, # resolution
1166
  1, # total_second_length
1167
  9, # latent_window_size
1168
- 25, # steps
1169
  1.0, # cfg
1170
  10.0, # gs
1171
  0.0, # rs
1172
  6, # gpu_memory_preservation
1173
- True, # use_teacache
1174
  False, # no_resize
1175
  16, # mp4_crf
1176
  5, # num_clean_frames
@@ -1204,6 +1204,65 @@ with block:
1204
  outputs = [result_video, preview_image, progress_desc, progress_bar, start_button_video, end_button],
1205
  cache_examples = torch.cuda.device_count() > 0,
1206
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1207
 
1208
  def handle_generation_mode_change(generation_mode_data):
1209
  if generation_mode_data == "text":
 
1118
  672, # resolution
1119
  1, # total_second_length
1120
  9, # latent_window_size
1121
+ 45, # steps
1122
  1.0, # cfg
1123
  10.0, # gs
1124
  0.0, # rs
1125
  6, # gpu_memory_preservation
1126
+ False, # use_teacache
1127
  16 # mp4_crf
1128
  ],
1129
  [
 
1165
  672, # resolution
1166
  1, # total_second_length
1167
  9, # latent_window_size
1168
+ 45, # steps
1169
  1.0, # cfg
1170
  10.0, # gs
1171
  0.0, # rs
1172
  6, # gpu_memory_preservation
1173
+ False, # use_teacache
1174
  False, # no_resize
1175
  16, # mp4_crf
1176
  5, # num_clean_frames
 
1204
  outputs = [result_video, preview_image, progress_desc, progress_bar, start_button_video, end_button],
1205
  cache_examples = torch.cuda.device_count() > 0,
1206
  )
1207
+
1208
+ gr.Examples(
1209
+ examples = [
1210
+ [
1211
+ "./img_examples/Example1.png", # input_image
1212
+ "A dolphin emerges from the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
1213
+ "image", # generation_mode
1214
+ "Missing arm, unrealistic position, impossible contortion, blurred, blurry", # n_prompt
1215
+ True, # randomize_seed
1216
+ 42, # seed
1217
+ 672, # resolution
1218
+ 1, # total_second_length
1219
+ 9, # latent_window_size
1220
+ 25, # steps
1221
+ 1.0, # cfg
1222
+ 10.0, # gs
1223
+ 0.0, # rs
1224
+ 6, # gpu_memory_preservation
1225
+ False, # use_teacache
1226
+ 16 # mp4_crf
1227
+ ]
1228
+ ],
1229
+ run_on_click = True,
1230
+ fn = process,
1231
+ inputs = ips,
1232
+ outputs = [result_video, preview_image, progress_desc, progress_bar, start_button, end_button],
1233
+ cache_examples = False,
1234
+ )
1235
+
1236
+ gr.Examples(
1237
+ examples = [
1238
+ [
1239
+ "./img_examples/Example1.mp4", # input_video
1240
+ "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",
1241
+ "Missing arm, unrealistic position, blurred, blurry", # n_prompt
1242
+ True, # randomize_seed
1243
+ 42, # seed
1244
+ 1, # batch
1245
+ 672, # resolution
1246
+ 1, # total_second_length
1247
+ 9, # latent_window_size
1248
+ 25, # steps
1249
+ 1.0, # cfg
1250
+ 10.0, # gs
1251
+ 0.0, # rs
1252
+ 6, # gpu_memory_preservation
1253
+ False, # use_teacache
1254
+ False, # no_resize
1255
+ 16, # mp4_crf
1256
+ 5, # num_clean_frames
1257
+ default_vae
1258
+ ]
1259
+ ],
1260
+ run_on_click = True,
1261
+ fn = process_video,
1262
+ inputs = ips_video,
1263
+ outputs = [result_video, preview_image, progress_desc, progress_bar, start_button_video, end_button],
1264
+ cache_examples = False,
1265
+ )
1266
 
1267
  def handle_generation_mode_change(generation_mode_data):
1268
  if generation_mode_data == "text":