Spaces:
Running
Running
Merge examples
Browse files
app.py
CHANGED
@@ -1579,7 +1579,7 @@ with block:
|
|
1579 |
progress_bar = gr.HTML('', elem_classes='no-generating-animation')
|
1580 |
|
1581 |
ips = [input_image, end_image, image_position, final_prompt, generation_mode, n_prompt, randomize_seed, seed, auto_allocation, allocation_time, resolution, total_second_length, latent_window_size, steps, cfg, gs, rs, gpu_memory_preservation, enable_preview, use_teacache, mp4_crf, fps_number]
|
1582 |
-
ips_video = [input_video, end_image, final_prompt,
|
1583 |
|
1584 |
with gr.Row(elem_id="text_examples", visible=False):
|
1585 |
gr.Examples(
|
@@ -1847,68 +1847,6 @@ with block:
|
|
1847 |
cache_examples = torch.cuda.device_count() > 0,
|
1848 |
)
|
1849 |
|
1850 |
-
with gr.Row(elem_id="video_end_examples", visible=False):
|
1851 |
-
gr.Examples(
|
1852 |
-
label = "Examples from video & end frame",
|
1853 |
-
examples = [
|
1854 |
-
[
|
1855 |
-
"./img_examples/Example1.mp4", # input_video
|
1856 |
-
"./img_examples/Example1.png", # end_image
|
1857 |
-
"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",
|
1858 |
-
"Missing arm, long hand, unrealistic position, impossible contortion, visible bone, muscle contraction, poorly framed, blurred, blurry, over-smooth", # n_prompt
|
1859 |
-
True, # randomize_seed
|
1860 |
-
42, # seed
|
1861 |
-
True, # auto_allocation
|
1862 |
-
180, # allocation_time
|
1863 |
-
1, # batch
|
1864 |
-
672, # resolution
|
1865 |
-
1, # total_second_length
|
1866 |
-
9, # latent_window_size
|
1867 |
-
30, # steps
|
1868 |
-
1.0, # cfg
|
1869 |
-
10.0, # gs
|
1870 |
-
0.0, # rs
|
1871 |
-
6, # gpu_memory_preservation
|
1872 |
-
False, # enable_preview
|
1873 |
-
False, # use_teacache
|
1874 |
-
False, # no_resize
|
1875 |
-
16, # mp4_crf
|
1876 |
-
5, # num_clean_frames
|
1877 |
-
default_vae
|
1878 |
-
],
|
1879 |
-
[
|
1880 |
-
"./img_examples/Example1.mp4", # input_video
|
1881 |
-
"./img_examples/Example1.png", # end_image
|
1882 |
-
"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",
|
1883 |
-
"Missing arm, long hand, unrealistic position, impossible contortion, visible bone, muscle contraction, poorly framed, blurred, blurry, over-smooth", # n_prompt
|
1884 |
-
True, # randomize_seed
|
1885 |
-
42, # seed
|
1886 |
-
True, # auto_allocation
|
1887 |
-
180, # allocation_time
|
1888 |
-
1, # batch
|
1889 |
-
672, # resolution
|
1890 |
-
1, # total_second_length
|
1891 |
-
9, # latent_window_size
|
1892 |
-
30, # steps
|
1893 |
-
1.0, # cfg
|
1894 |
-
10.0, # gs
|
1895 |
-
0.0, # rs
|
1896 |
-
6, # gpu_memory_preservation
|
1897 |
-
False, # enable_preview
|
1898 |
-
True, # use_teacache
|
1899 |
-
False, # no_resize
|
1900 |
-
16, # mp4_crf
|
1901 |
-
5, # num_clean_frames
|
1902 |
-
default_vae
|
1903 |
-
],
|
1904 |
-
],
|
1905 |
-
run_on_click = True,
|
1906 |
-
fn = process_video,
|
1907 |
-
inputs = ips_video,
|
1908 |
-
outputs = [result_video, preview_image, progress_desc, progress_bar, start_button_video, end_button, warning],
|
1909 |
-
cache_examples = torch.cuda.device_count() > 0,
|
1910 |
-
)
|
1911 |
-
|
1912 |
gr.Examples(
|
1913 |
label = "✍️ Examples from text",
|
1914 |
examples = [
|
@@ -2137,18 +2075,7 @@ with block:
|
|
2137 |
16, # mp4_crf
|
2138 |
5, # num_clean_frames
|
2139 |
default_vae
|
2140 |
-
]
|
2141 |
-
],
|
2142 |
-
run_on_click = True,
|
2143 |
-
fn = process_video,
|
2144 |
-
inputs = ips_video,
|
2145 |
-
outputs = [result_video, preview_image, progress_desc, progress_bar, start_button_video, end_button, warning],
|
2146 |
-
cache_examples = False,
|
2147 |
-
)
|
2148 |
-
|
2149 |
-
gr.Examples(
|
2150 |
-
label = "🎥 Examples from video & end frame",
|
2151 |
-
examples = [
|
2152 |
[
|
2153 |
"./img_examples/Example1.mp4", # input_video
|
2154 |
"./img_examples/Example1.png", # end_image
|
|
|
1579 |
progress_bar = gr.HTML('', elem_classes='no-generating-animation')
|
1580 |
|
1581 |
ips = [input_image, end_image, image_position, final_prompt, generation_mode, n_prompt, randomize_seed, seed, auto_allocation, allocation_time, resolution, total_second_length, latent_window_size, steps, cfg, gs, rs, gpu_memory_preservation, enable_preview, use_teacache, mp4_crf, fps_number]
|
1582 |
+
ips_video = [input_video, end_image, final_prompt, n_prompt, randomize_seed, seed, auto_allocation, allocation_time, batch, resolution, total_second_length, latent_window_size, steps, cfg, gs, rs, gpu_memory_preservation, enable_preview, use_teacache, no_resize, mp4_crf, num_clean_frames, vae_batch]
|
1583 |
|
1584 |
with gr.Row(elem_id="text_examples", visible=False):
|
1585 |
gr.Examples(
|
|
|
1847 |
cache_examples = torch.cuda.device_count() > 0,
|
1848 |
)
|
1849 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1850 |
gr.Examples(
|
1851 |
label = "✍️ Examples from text",
|
1852 |
examples = [
|
|
|
2075 |
16, # mp4_crf
|
2076 |
5, # num_clean_frames
|
2077 |
default_vae
|
2078 |
+
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2079 |
[
|
2080 |
"./img_examples/Example1.mp4", # input_video
|
2081 |
"./img_examples/Example1.png", # end_image
|