Update examples
Browse files- app.py +5 -0
- gradio_cached_examples/24/log.csv +9 -9
app.py
CHANGED
@@ -80,6 +80,9 @@ def generate(image_size, vae_model, class_label, cfg_scale, num_sampling_steps,
|
|
80 |
description = '''This is a demo of our DiT image generation models. DiTs are a new class of diffusion models with
|
81 |
transformer backbones. They are class-conditional models trained on ImageNet-1K, and they outperform prior DDPMs.'''
|
82 |
|
|
|
|
|
|
|
83 |
project_links = '''
|
84 |
<p style="text-align: center">
|
85 |
<a href="https://www.wpeebles.com/DiT.html">Project Page</a> ·
|
@@ -104,6 +107,7 @@ with gr.Blocks() as demo:
|
|
104 |
gr.Markdown("<h1 style='text-align: center'>Scalable Diffusion Models with Transformers (DiT)</h1>")
|
105 |
gr.Markdown(project_links)
|
106 |
gr.Markdown(description)
|
|
|
107 |
|
108 |
with gr.Tabs():
|
109 |
with gr.TabItem('Generate'):
|
@@ -132,5 +136,6 @@ with gr.Blocks() as demo:
|
|
132 |
inputs=[image_size, vae_model, i1k_class, cfg_scale, steps, n, seed],
|
133 |
outputs=[output],
|
134 |
cache_examples=True)
|
|
|
135 |
demo.queue()
|
136 |
demo.launch()
|
|
|
80 |
description = '''This is a demo of our DiT image generation models. DiTs are a new class of diffusion models with
|
81 |
transformer backbones. They are class-conditional models trained on ImageNet-1K, and they outperform prior DDPMs.'''
|
82 |
|
83 |
+
duplicate = '''Skip the queue by duplicating this space and upgrading to GPU in settings
|
84 |
+
<a href="https://huggingface.co/spaces/wpeebles/DiT?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>'''
|
85 |
+
|
86 |
project_links = '''
|
87 |
<p style="text-align: center">
|
88 |
<a href="https://www.wpeebles.com/DiT.html">Project Page</a> ·
|
|
|
107 |
gr.Markdown("<h1 style='text-align: center'>Scalable Diffusion Models with Transformers (DiT)</h1>")
|
108 |
gr.Markdown(project_links)
|
109 |
gr.Markdown(description)
|
110 |
+
gr.Markdown(duplicate)
|
111 |
|
112 |
with gr.Tabs():
|
113 |
with gr.TabItem('Generate'):
|
|
|
136 |
inputs=[image_size, vae_model, i1k_class, cfg_scale, steps, n, seed],
|
137 |
outputs=[output],
|
138 |
cache_examples=True)
|
139 |
+
|
140 |
demo.queue()
|
141 |
demo.launch()
|
gradio_cached_examples/24/log.csv
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
Generated Images,flag,username,timestamp
|
2 |
-
/home/
|
3 |
-
/home/
|
4 |
-
/home/
|
5 |
-
/home/
|
6 |
-
/home/
|
7 |
-
/home/
|
8 |
-
/home/
|
9 |
-
/home/
|
|
|
1 |
+
Generated Images,flag,username,timestamp
|
2 |
+
/home/user/app/gradio_cached_examples/24/Generated Images/231fe3e1-c89b-4f63-82a9-440acf3a7cec,,,2022-12-21 22:19:52.975486
|
3 |
+
/home/user/app/gradio_cached_examples/24/Generated Images/d27e1dc9-db99-41dd-8b49-64c258de32dd,,,2022-12-21 22:21:49.400813
|
4 |
+
/home/user/app/gradio_cached_examples/24/Generated Images/9911670d-5269-42e8-88b3-6b14ef619d63,,,2022-12-21 22:23:45.918671
|
5 |
+
/home/user/app/gradio_cached_examples/24/Generated Images/38eaef4c-3ed3-4733-b410-2f2c7392898e,,,2022-12-21 22:25:42.360174
|
6 |
+
/home/user/app/gradio_cached_examples/24/Generated Images/e087b228-ae0b-4c27-92d4-6843133aa998,,,2022-12-21 22:27:38.970601
|
7 |
+
/home/user/app/gradio_cached_examples/24/Generated Images/c4f23c2e-829d-4261-b0de-f48c17bf2f61,,,2022-12-21 22:28:17.384826
|
8 |
+
/home/user/app/gradio_cached_examples/24/Generated Images/ed43f675-4837-43b1-b1ff-7081b5df0bf8,,,2022-12-21 22:28:44.680872
|
9 |
+
/home/user/app/gradio_cached_examples/24/Generated Images/cfcf58d6-cf80-432e-9da1-a30fc69440bf,,,2022-12-21 22:29:12.090413
|