Spaces:
Runtime error
Runtime error
verkaDerkaDerk
commited on
Commit
•
e645169
1
Parent(s):
1746d78
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ def imagine():
|
|
14 |
def fancy():
|
15 |
# try some https://huggingface.co/spaces/stabilityai/stable-diffusion/blob/main/app.py trix
|
16 |
# for some bizarre reason this results in huggingface.co 'Temporary failure in name resolution'
|
|
|
17 |
block = gr.Blocks()
|
18 |
with block:
|
19 |
gr.HTML('''
|
@@ -21,8 +22,11 @@ def fancy():
|
|
21 |
This is an unconditioned diffusion model trained on around 500
|
22 |
miscellaneous tiki images from around the web.
|
23 |
|
24 |
-
It was trained for around
|
25 |
-
|
|
|
|
|
|
|
26 |
|
27 |
It may take a really long time like 120s for some reason.
|
28 |
|
@@ -41,7 +45,9 @@ def fancy():
|
|
41 |
|
42 |
btn.click(imagine, inputs=None, outputs=gallery)
|
43 |
gr.HTML('''
|
44 |
-
|
|
|
|
|
45 |
''')
|
46 |
#block.queue(max_size=40).launch()
|
47 |
block.queue().launch()
|
|
|
14 |
def fancy():
|
15 |
# try some https://huggingface.co/spaces/stabilityai/stable-diffusion/blob/main/app.py trix
|
16 |
# for some bizarre reason this results in huggingface.co 'Temporary failure in name resolution'
|
17 |
+
# it works fine in collab...
|
18 |
block = gr.Blocks()
|
19 |
with block:
|
20 |
gr.HTML('''
|
|
|
22 |
This is an unconditioned diffusion model trained on around 500
|
23 |
miscellaneous tiki images from around the web.
|
24 |
|
25 |
+
It was trained for around 4k epochs with a loss around 1.5%.
|
26 |
+
Despite the loss staying about the same, the visual quality
|
27 |
+
continue[sd] to improve.
|
28 |
+
|
29 |
+
The 64x64 version (used here took around 12s/epoch)
|
30 |
|
31 |
It may take a really long time like 120s for some reason.
|
32 |
|
|
|
45 |
|
46 |
btn.click(imagine, inputs=None, outputs=gallery)
|
47 |
gr.HTML('''
|
48 |
+
<p><img src="blob/main/tiki-600e.png"></p>
|
49 |
+
|
50 |
+
<p>Trained with <a href="https://github.com/huggingface/diffusers">diffusers</a>.</p>
|
51 |
''')
|
52 |
#block.queue(max_size=40).launch()
|
53 |
block.queue().launch()
|