maxin-cn commited on
Commit
95a07ef
1 Parent(s): d9e83ee

Upload folder using huggingface_hub

Browse files
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" , 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
286
- ["./example/fireworks/0.jpg", "fireworks" , 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
287
- ["./example/flowers_swaying/0.jpg", "flowers swaying" , 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
288
- ["./example/girl_walking_on_the_beach/0.jpg", "girl walking on the beach" , 50, 320, 512, 7.5, True, 0.23, 985, 10, 200],
289
- ["./example/house_rotating/0.jpg", "house rotating" , 50, 320, 512, 7.5, True, 0.23, 985, 10, 100],
290
- ["./example/people_runing/0.jpg", "people runing" , 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
291
- ["./example/shark_swimming/0.jpg", "shark swimming" , 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
292
- ["./example/car_moving/0.jpg", "car moving" , 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
293
- ["./example/windmill_turning/0.jpg", "windmill turning" , 50, 320, 512, 7.5, True, 0.23, 975, 10, 100],
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/a3f7225a444fbd51e1df/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/6bf88e8cee9a88a69c12b5abe5f9570920bc64ab/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 13:20:16.156080
3
- "{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/0bd2c892d93cea6575fb/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/deb9620f616c3681cb074388781099f78a25dc8f/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 13:20:27.176634
4
- "{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/216805b5d5d2f5ab6f3b/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 13:20:38.238643
5
- "{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/430581314c8707974074/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/a115eecb56cea7444252bf5d5c5d6bf946cb90fb/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 13:20:49.321367
6
- "{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/3527a82ecd4f8d855fde/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/0d370bf6a6284e9832de2b865a19a8166fd7b2da/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 13:21:00.445240
7
- "{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/9f4316aca9aae42dac66/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/7e3c6838256fd5a89b20ad62ce42288212e62097/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 13:21:11.558142
8
- "{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/76b89e66ff946d2c03e3/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/81b0981cf82c96460f1cd5bd8de8e0cf5855b5f9/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 13:21:22.638538
9
- "{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/9dc7d55d2941d8284460/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/cd0c3875e3725ff5c892c4f728a9e62a5cdcd6a3/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 13:21:33.763127
10
- "{""video"": {""path"": ""gradio_cached_examples/40/Generated Animation/68d9ae906d26a709880e/temp.mp4"", ""url"": ""/file=/data/pe1/000scratch/slurm_tmpdir/20240731_job_53275693.XzFi/gradio/a74b0b67f332bb3e1cd0b40cde137223c5c65a1a/temp.mp4"", ""size"": null, ""orig_name"": ""temp.mp4"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}, ""subtitles"": null}",,,2024-07-31 13:21:44.911136
 
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