Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files- demo.py +11 -22
- gradio_cached_examples/40/Generated Animation/0e6fccf087159f92eddc/temp.mp4 +0 -0
- gradio_cached_examples/40/Generated Animation/1941adc2d02ff8847a8b/temp.mp4 +0 -0
- gradio_cached_examples/40/Generated Animation/2bdcf3a5c44bf3b81d03/temp.mp4 +0 -0
- gradio_cached_examples/40/Generated Animation/73a28e0fc04f256eaeeb/temp.mp4 +0 -0
- gradio_cached_examples/40/Generated Animation/80e33a9fe8ae0d8ca459/temp.mp4 +0 -0
- gradio_cached_examples/40/Generated Animation/9cd847472e0becf5b842/temp.mp4 +0 -0
- gradio_cached_examples/40/Generated Animation/acf27b86b98823aea07f/temp.mp4 +0 -0
- gradio_cached_examples/40/Generated Animation/ad0bdbdcb08d72d3d808/temp.mp4 +0 -0
- gradio_cached_examples/40/Generated Animation/f31555c91c578a901d5f/temp.mp4 +0 -0
- gradio_cached_examples/40/log.csv +9 -9
- sample_videos/temp.mp4 +0 -0
demo.py
CHANGED
@@ -269,34 +269,23 @@ with gr.Blocks() as demo:
|
|
269 |
preview_button.click(fn=update_and_resize_image, inputs=[input_image_path, height, width], outputs=[input_image])
|
270 |
input_image_path.submit(fn=update_and_resize_image, inputs=[input_image_path, height, width], outputs=[input_image])
|
271 |
|
272 |
-
# EXAMPLES = [
|
273 |
-
# ["./example/aircrafts_flying/0.jpg", "aircrafts flying" , "", 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
|
274 |
-
# ["./example/fireworks/0.jpg", "fireworks" , "", 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
|
275 |
-
# ["./example/flowers_swaying/0.jpg", "flowers swaying" , "", 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
|
276 |
-
# ["./example/girl_walking_on_the_beach/0.jpg", "girl walking on the beach" , "", 50, 320, 512, 7.5, True, 0.23, 985, 10, 200],
|
277 |
-
# ["./example/house_rotating/0.jpg", "house rotating" , "", 50, 320, 512, 7.5, True, 0.23, 985, 10, 100],
|
278 |
-
# ["./example/people_runing/0.jpg", "people runing" , "", 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
|
279 |
-
# ["./example/shark_swimming/0.jpg", "shark swimming" , "", 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
|
280 |
-
# ["./example/car_moving/0.jpg", "car moving" , "", 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
|
281 |
-
# ["./example/windmill_turning/0.jpg", "windmill turning" , "", 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
|
282 |
-
# ]
|
283 |
-
|
284 |
EXAMPLES = [
|
285 |
-
["./example/aircrafts_flying/0.jpg", "aircrafts flying" ,
|
286 |
-
["./example/fireworks/0.jpg", "fireworks" ,
|
287 |
-
["./example/flowers_swaying/0.jpg", "flowers swaying" ,
|
288 |
-
["./example/girl_walking_on_the_beach/0.jpg", "girl walking on the beach" ,
|
289 |
-
["./example/house_rotating/0.jpg", "house rotating" ,
|
290 |
-
["./example/people_runing/0.jpg", "people runing" ,
|
291 |
-
["./example/shark_swimming/0.jpg", "shark swimming" ,
|
292 |
-
["./example/car_moving/0.jpg", "car moving" ,
|
293 |
-
["./example/windmill_turning/0.jpg", "windmill turning" ,
|
294 |
]
|
|
|
295 |
|
296 |
examples = gr.Examples(
|
297 |
examples = EXAMPLES,
|
298 |
fn = gen_video,
|
299 |
-
inputs=[input_image, prompt_textbox, sample_step_slider, height, width, txt_cfg_scale, use_dctinit, dct_coefficients, noise_level, motion_bucket_id, seed_textbox],
|
300 |
outputs=[result_video],
|
301 |
cache_examples=True,
|
302 |
# cache_examples="lazy",
|
|
|
269 |
preview_button.click(fn=update_and_resize_image, inputs=[input_image_path, height, width], outputs=[input_image])
|
270 |
input_image_path.submit(fn=update_and_resize_image, inputs=[input_image_path, height, width], outputs=[input_image])
|
271 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
EXAMPLES = [
|
273 |
+
["./example/aircrafts_flying/0.jpg", "aircrafts flying" , "low quality", 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
|
274 |
+
["./example/fireworks/0.jpg", "fireworks" , "low quality", 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
|
275 |
+
["./example/flowers_swaying/0.jpg", "flowers swaying" , "", 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
|
276 |
+
["./example/girl_walking_on_the_beach/0.jpg", "girl walking on the beach" , "low quality, background changing", 50, 320, 512, 7.5, True, 0.25, 995, 10, 49494220],
|
277 |
+
["./example/house_rotating/0.jpg", "house rotating" , "low quality", 50, 320, 512, 7.5, True, 0.23, 985, 10, 46640174],
|
278 |
+
["./example/people_runing/0.jpg", "people runing" , "low quality, background changing", 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
|
279 |
+
["./example/shark_swimming/0.jpg", "shark swimming" , "", 50, 320, 512, 7.5, True, 0.23, 975, 10, 32947978],
|
280 |
+
["./example/car_moving/0.jpg", "car moving" , "", 50, 320, 512, 7.5, True, 0.23, 975, 10, 75469653],
|
281 |
+
["./example/windmill_turning/0.jpg", "windmill turning" , "background changing", 50, 320, 512, 7.5, True, 0.21, 975, 10, 89378613],
|
282 |
]
|
283 |
+
|
284 |
|
285 |
examples = gr.Examples(
|
286 |
examples = EXAMPLES,
|
287 |
fn = gen_video,
|
288 |
+
inputs=[input_image, prompt_textbox, negative_prompt_textbox, sample_step_slider, height, width, txt_cfg_scale, use_dctinit, dct_coefficients, noise_level, motion_bucket_id, seed_textbox],
|
289 |
outputs=[result_video],
|
290 |
cache_examples=True,
|
291 |
# cache_examples="lazy",
|
gradio_cached_examples/40/Generated Animation/0e6fccf087159f92eddc/temp.mp4
ADDED
Binary file (226 kB). View file
|
|
gradio_cached_examples/40/Generated Animation/1941adc2d02ff8847a8b/temp.mp4
ADDED
Binary file (156 kB). View file
|
|
gradio_cached_examples/40/Generated Animation/2bdcf3a5c44bf3b81d03/temp.mp4
ADDED
Binary file (135 kB). View file
|
|
gradio_cached_examples/40/Generated Animation/73a28e0fc04f256eaeeb/temp.mp4
ADDED
Binary file (289 kB). View file
|
|
gradio_cached_examples/40/Generated Animation/80e33a9fe8ae0d8ca459/temp.mp4
ADDED
Binary file (260 kB). View file
|
|
gradio_cached_examples/40/Generated Animation/9cd847472e0becf5b842/temp.mp4
ADDED
Binary file (257 kB). View file
|
|
gradio_cached_examples/40/Generated Animation/acf27b86b98823aea07f/temp.mp4
ADDED
Binary file (297 kB). View file
|
|
gradio_cached_examples/40/Generated Animation/ad0bdbdcb08d72d3d808/temp.mp4
ADDED
Binary file (260 kB). View file
|
|
gradio_cached_examples/40/Generated Animation/f31555c91c578a901d5f/temp.mp4
ADDED
Binary file (211 kB). View file
|
|
gradio_cached_examples/40/log.csv
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
Generated Animation,flag,username,timestamp
|
2 |
-
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/
|
3 |
-
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/
|
4 |
-
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/
|
5 |
-
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/
|
6 |
-
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/
|
7 |
-
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/
|
8 |
-
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/
|
9 |
-
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/
|
10 |
-
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/
|
|
|
1 |
Generated Animation,flag,username,timestamp
|
2 |
+
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/9cd847472e0becf5b842/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/8673041bc32d6d142782de8d76e8fea86bbe72d3/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 14:05:39.892581
|
3 |
+
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/acf27b86b98823aea07f/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/880c38f474155994d2b54bf0cc56804f10dd048d/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 14:05:50.985509
|
4 |
+
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/0e6fccf087159f92eddc/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/d9e392300169a439b3f5721579849e3e5ce6abf9/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 14:06:02.045401
|
5 |
+
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/80e33a9fe8ae0d8ca459/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/cd4659db3d5844f8ded1a0151e7d6672f531ac6e/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 14:06:13.139082
|
6 |
+
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/73a28e0fc04f256eaeeb/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/99ff6e7d2df8e34117e9fce601a72261b28d722b/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 14:06:24.252823
|
7 |
+
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/ad0bdbdcb08d72d3d808/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/b52a8d06a3a647f9ef85577f20fc3dfaf17026d8/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 14:06:35.414838
|
8 |
+
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/1941adc2d02ff8847a8b/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/603a4bb8f3b89b6347328e5b2350e5c43cc3d17f/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 14:06:46.534401
|
9 |
+
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/f31555c91c578a901d5f/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/82021f090a58aeae1053e8ab9e07a731ddbc8072/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 14:06:57.663052
|
10 |
+
"{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/2bdcf3a5c44bf3b81d03/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/f9c56b17ef6608229f58d7582144d938cce0a7e2/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 14:07:08.810626
|
sample_videos/temp.mp4
CHANGED
Binary files a/sample_videos/temp.mp4 and b/sample_videos/temp.mp4 differ
|
|