JacopoMangiavacchi
commited on
Commit
•
109bbdb
1
Parent(s):
879376e
gradio HF demo
Browse files- .DS_Store +0 -0
- Example01.jpeg +0 -0
- Output01.png +0 -0
- app.py +7 -6
- input/.DS_Store +0 -0
- input/01.jpeg +0 -0
- input/02.jpeg +0 -0
- input/03.jpeg +0 -0
- input/04.jpeg +0 -0
- input/05.jpeg +0 -0
- input/06.jpeg +0 -0
- input/07.jpeg +0 -0
- input/08.jpeg +0 -0
- input/09.jpeg +0 -0
- input/10.jpeg +0 -0
- output/01.png +0 -0
- output/02.png +0 -0
- output/03.png +0 -0
- output/04.png +0 -0
- output/05.png +0 -0
- output/06.png +0 -0
- output/07.png +0 -0
- output/08.png +0 -0
- output/09.png +0 -0
- output/10.png +0 -0
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
Example01.jpeg
DELETED
Binary file (196 kB)
|
|
Output01.png
DELETED
Binary file (865 kB)
|
|
app.py
CHANGED
@@ -84,25 +84,26 @@ article = """
|
|
84 |
<p style='text-align: center'>The \"ToonClip\" model was trained by <a href='https://twitter.com/JacopoMangia' target='_blank'>Jacopo Mangiavacchi</a> and available at <a href='https://github.com/jacopomangiavacchi/ComicsHeroMobileUNet' target='_blank'>Github Repo ComicsHeroMobileUNet</a></p>
|
85 |
<p style='text-align: center'>The \"Comics Hero dataset\" used to train this model was produced by <a href='https://linktr.ee/Norod78' target='_blank'>Doron Adler</a> and available at <a href='https://github.com/Norod/U-2-Net-StyleTransfer' target='_blank'>Github Repo Comics hero U2Net</a></p>
|
86 |
<p style='text-align: center'>The \"ToonClip\" iOS mobile app using a CoreML version of this model is available on Apple App Store at <a href='https://apps.apple.com/us/app/toonclip/id1536285338' target='_blank'>ToonClip</a></p>
|
87 |
-
<
|
|
|
88 |
<p>
|
89 |
<div id='mainDiv'>
|
90 |
<div id='divOne' class='boxes'>
|
91 |
-
<img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/file/
|
92 |
</div>
|
93 |
<div id='divTwo' class='boxes'>
|
94 |
-
<img <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/
|
95 |
</div>
|
96 |
<div id='divOne' class='boxes'>
|
97 |
-
<img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/file/
|
98 |
</div>
|
99 |
<div id='divTwo' class='boxes'>
|
100 |
-
<img <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/
|
101 |
</div>
|
102 |
</div>
|
103 |
</p>
|
104 |
"""
|
105 |
-
examples=[['
|
106 |
|
107 |
iface = gr.Interface(
|
108 |
nogan,
|
|
|
84 |
<p style='text-align: center'>The \"ToonClip\" model was trained by <a href='https://twitter.com/JacopoMangia' target='_blank'>Jacopo Mangiavacchi</a> and available at <a href='https://github.com/jacopomangiavacchi/ComicsHeroMobileUNet' target='_blank'>Github Repo ComicsHeroMobileUNet</a></p>
|
85 |
<p style='text-align: center'>The \"Comics Hero dataset\" used to train this model was produced by <a href='https://linktr.ee/Norod78' target='_blank'>Doron Adler</a> and available at <a href='https://github.com/Norod/U-2-Net-StyleTransfer' target='_blank'>Github Repo Comics hero U2Net</a></p>
|
86 |
<p style='text-align: center'>The \"ToonClip\" iOS mobile app using a CoreML version of this model is available on Apple App Store at <a href='https://apps.apple.com/us/app/toonclip/id1536285338' target='_blank'>ToonClip</a></p>
|
87 |
+
<br>
|
88 |
+
<p style='text-align: center'>Example images from untrained FFHQ validation set: </p>
|
89 |
<p>
|
90 |
<div id='mainDiv'>
|
91 |
<div id='divOne' class='boxes'>
|
92 |
+
<img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/file/input/01.jpeg' alt='Example01'/>
|
93 |
</div>
|
94 |
<div id='divTwo' class='boxes'>
|
95 |
+
<img <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/output/01.png' alt='Output01'/>
|
96 |
</div>
|
97 |
<div id='divOne' class='boxes'>
|
98 |
+
<img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/file/input/02.jpeg' alt='Example01'/>
|
99 |
</div>
|
100 |
<div id='divTwo' class='boxes'>
|
101 |
+
<img <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/output02.png' alt='Output01'/>
|
102 |
</div>
|
103 |
</div>
|
104 |
</p>
|
105 |
"""
|
106 |
+
examples=[['input/01.jpeg'], ['input/02.jpeg'], ['input/03.jpeg'], ['input/04.jpeg'], ['input/05.jpeg'], ['input/06.jpeg'], ['input/07.jpeg'], ['input/08.jpeg'], ['input/09.jpeg'], ['input/10.jpeg']]
|
107 |
|
108 |
iface = gr.Interface(
|
109 |
nogan,
|
input/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
input/01.jpeg
ADDED
input/02.jpeg
ADDED
input/03.jpeg
ADDED
input/04.jpeg
ADDED
input/05.jpeg
ADDED
input/06.jpeg
ADDED
input/07.jpeg
ADDED
input/08.jpeg
ADDED
input/09.jpeg
ADDED
input/10.jpeg
ADDED
output/01.png
ADDED
output/02.png
ADDED
output/03.png
ADDED
output/04.png
ADDED
output/05.png
ADDED
output/06.png
ADDED
output/07.png
ADDED
output/08.png
ADDED
output/09.png
ADDED
output/10.png
ADDED