Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
07c1f7a
1
Parent(s):
9ac31b8
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
import gradio.helpers
|
3 |
import torch
|
4 |
import os
|
5 |
from glob import glob
|
@@ -14,7 +14,7 @@ import uuid
|
|
14 |
import random
|
15 |
from huggingface_hub import hf_hub_download
|
16 |
|
17 |
-
gradio.helpers.CACHED_FOLDER = '/data/cache'
|
18 |
|
19 |
pipe = StableVideoDiffusionPipeline.from_pretrained(
|
20 |
"stabilityai/stable-video-diffusion-img2vid-xt", torch_dtype=torch.float16, variant="fp16"
|
@@ -87,7 +87,7 @@ def resize_image(image, output_size=(1024, 576)):
|
|
87 |
|
88 |
with gr.Blocks() as demo:
|
89 |
gr.Markdown('''# Community demo for Stable Video Diffusion - Img2Vid - XT ([model](https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt), [paper](https://stability.ai/research/stable-video-diffusion-scaling-latent-video-diffusion-models-to-large-datasets))
|
90 |
-
#### Research release ([_non-commercial_](https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt/blob/main/LICENSE)): generate `4s` vid from a single image at (`25 frames` at `6 fps`).
|
91 |
''')
|
92 |
with gr.Row():
|
93 |
with gr.Column():
|
@@ -106,7 +106,6 @@ with gr.Blocks() as demo:
|
|
106 |
examples=[
|
107 |
"images/blink_meme.png",
|
108 |
"images/confused2_meme.png",
|
109 |
-
"images/confused_meme.png",
|
110 |
"images/disaster_meme.png",
|
111 |
"images/distracted_meme.png",
|
112 |
"images/hide_meme.png",
|
|
|
1 |
import gradio as gr
|
2 |
+
#import gradio.helpers
|
3 |
import torch
|
4 |
import os
|
5 |
from glob import glob
|
|
|
14 |
import random
|
15 |
from huggingface_hub import hf_hub_download
|
16 |
|
17 |
+
#gradio.helpers.CACHED_FOLDER = '/data/cache'
|
18 |
|
19 |
pipe = StableVideoDiffusionPipeline.from_pretrained(
|
20 |
"stabilityai/stable-video-diffusion-img2vid-xt", torch_dtype=torch.float16, variant="fp16"
|
|
|
87 |
|
88 |
with gr.Blocks() as demo:
|
89 |
gr.Markdown('''# Community demo for Stable Video Diffusion - Img2Vid - XT ([model](https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt), [paper](https://stability.ai/research/stable-video-diffusion-scaling-latent-video-diffusion-models-to-large-datasets))
|
90 |
+
#### Research release ([_non-commercial_](https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt/blob/main/LICENSE)): generate `4s` vid from a single image at (`25 frames` at `6 fps`). this demo uses 🧨 diffusers. [Join the waitlist for Stability's upcoming web experience](https://stability.ai/contact).
|
91 |
''')
|
92 |
with gr.Row():
|
93 |
with gr.Column():
|
|
|
106 |
examples=[
|
107 |
"images/blink_meme.png",
|
108 |
"images/confused2_meme.png",
|
|
|
109 |
"images/disaster_meme.png",
|
110 |
"images/distracted_meme.png",
|
111 |
"images/hide_meme.png",
|