Spaces:
Running
Running
Xin
commited on
Commit
•
108f5a3
1
Parent(s):
6a6310c
update
Browse files- AnimeGANv3_bin.so +2 -2
- AnimeGANv3_src.so +2 -2
- app.py +16 -3
- samples/120.jpg +0 -0
- samples/Hamabe Minami.jpg +0 -0
AnimeGANv3_bin.so
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68d9a900361fd28654621c27c97b4d75ef09845e151fa44ce726d77b9ef657ca
|
3 |
+
size 60963512
|
AnimeGANv3_src.so
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:75c0001206c43bba05918c2c3ae870690534845bd7b22c812f82bb4fb44c71f7
|
3 |
+
size 456896
|
app.py
CHANGED
@@ -22,6 +22,10 @@ def inference(img_path, Style, if_face=None):
|
|
22 |
f = "P"
|
23 |
elif Style == "AnimeGANv3_Hayao":
|
24 |
f = "H"
|
|
|
|
|
|
|
|
|
25 |
else:
|
26 |
f = "U"
|
27 |
|
@@ -49,18 +53,25 @@ article = r"""
|
|
49 |
|
50 |
[![GitHub Stars](https://img.shields.io/github/stars/TachibanaYoshino/AnimeGANv3?style=social)](https://github.com/TachibanaYoshino/AnimeGANv3)
|
51 |
|
52 |
-
### 🗻 Demo
|
|
|
53 |
<p style="display: flex;">
|
54 |
<a href="https://youtu.be/EosubeJmAnE" target="___blank" style="margin-left: 14px;"><img src="https://img.shields.io/static/v1?label=YouTube&message=video 1&color=red"/></a>
|
55 |
<a href="https://youtu.be/5qLUflWb45E" target="___blank" style="margin-left: 14px;"><img src="https://img.shields.io/static/v1?label=YouTube&message=video 2&color=green"/></a>
|
56 |
<a href="https://youtu.be/0KaScDxgyBw" target="___blank" style="margin-left: 14px;"><img src="https://img.shields.io/static/v1?label=YouTube&message=video 3&color=pink"/></a>
|
57 |
</p>
|
|
|
|
|
58 |
|
59 |
----------
|
60 |
|
61 |
## License
|
62 |
This repo is made freely available to academic and non-academic entities for non-commercial purposes such as academic research, teaching, scientific publications. Permission is granted to use the AnimeGANv3 given that you agree to my license terms. Regarding the request for commercial use, please contact us via email to help you obtain the authorization letter.
|
63 |
|
|
|
|
|
|
|
|
|
64 |
## Author
|
65 |
Xin Chen
|
66 |
If you have any question, please open an issue on GitHub Repo.
|
@@ -76,8 +87,10 @@ gr.Interface(
|
|
76 |
'AnimeGANv3_Shinkai',
|
77 |
'AnimeGANv3_Arcane',
|
78 |
'AnimeGANv3_USA',
|
79 |
-
'AnimeGANv3_Trump',
|
|
|
80 |
'AnimeGANv3_PortraitSketch',
|
|
|
81 |
],
|
82 |
type="value",
|
83 |
value='AnimeGANv3_Hayao',
|
@@ -92,4 +105,4 @@ gr.Interface(
|
|
92 |
article=article,
|
93 |
allow_flagging="never",
|
94 |
examples=[['samples/7_out.jpg', 'AnimeGANv3_Arcane', "Yes"], ['samples/15566.jpg', 'AnimeGANv3_USA', "Yes"],['samples/23034.jpg', 'AnimeGANv3_Trump v1.0', "Yes"], ['samples/jp_13.jpg', 'AnimeGANv3_Hayao', "No"],
|
95 |
-
['samples/jp_20.jpg', 'AnimeGANv3_Shinkai', "No"], ['samples/52014.jpg', 'AnimeGANv3_PortraitSketch', "Yes"]]).launch(enable_queue=True)
|
|
|
22 |
f = "P"
|
23 |
elif Style == "AnimeGANv3_Hayao":
|
24 |
f = "H"
|
25 |
+
elif Style == "AnimeGANv3_Disney v1.0":
|
26 |
+
f = "D"
|
27 |
+
elif Style == "AnimeGANv3_JP_face v1.0":
|
28 |
+
f = "J"
|
29 |
else:
|
30 |
f = "U"
|
31 |
|
|
|
53 |
|
54 |
[![GitHub Stars](https://img.shields.io/github/stars/TachibanaYoshino/AnimeGANv3?style=social)](https://github.com/TachibanaYoshino/AnimeGANv3)
|
55 |
|
56 |
+
### 🗻 Demo
|
57 |
+
I. Video to anime (Hayao Style)
|
58 |
<p style="display: flex;">
|
59 |
<a href="https://youtu.be/EosubeJmAnE" target="___blank" style="margin-left: 14px;"><img src="https://img.shields.io/static/v1?label=YouTube&message=video 1&color=red"/></a>
|
60 |
<a href="https://youtu.be/5qLUflWb45E" target="___blank" style="margin-left: 14px;"><img src="https://img.shields.io/static/v1?label=YouTube&message=video 2&color=green"/></a>
|
61 |
<a href="https://youtu.be/0KaScDxgyBw" target="___blank" style="margin-left: 14px;"><img src="https://img.shields.io/static/v1?label=YouTube&message=video 3&color=pink"/></a>
|
62 |
</p>
|
63 |
+
II. Video to anime (USA cartoon + Disney style )
|
64 |
+
<a href="https://youtu.be/vJqQQMRYKh0"><img src="https://img.shields.io/static/v1?label=YouTube&message=AnimeGANv3_Trump style v1.5 &color=gold"/></a>
|
65 |
|
66 |
----------
|
67 |
|
68 |
## License
|
69 |
This repo is made freely available to academic and non-academic entities for non-commercial purposes such as academic research, teaching, scientific publications. Permission is granted to use the AnimeGANv3 given that you agree to my license terms. Regarding the request for commercial use, please contact us via email to help you obtain the authorization letter.
|
70 |
|
71 |
+
## Acknowledgement
|
72 |
+
* Huggingface UI is referenced from @akhaliq/GFPGAN.
|
73 |
+
* The dataset of AnimeGANv3_JP_face v1.0 is from DCTnet and then manually optimized.
|
74 |
+
|
75 |
## Author
|
76 |
Xin Chen
|
77 |
If you have any question, please open an issue on GitHub Repo.
|
|
|
87 |
'AnimeGANv3_Shinkai',
|
88 |
'AnimeGANv3_Arcane',
|
89 |
'AnimeGANv3_USA',
|
90 |
+
'AnimeGANv3_Trump v1.0',
|
91 |
+
'AnimeGANv3_Disney v1.0',
|
92 |
'AnimeGANv3_PortraitSketch',
|
93 |
+
'AnimeGANv3_JP_face v1.0',
|
94 |
],
|
95 |
type="value",
|
96 |
value='AnimeGANv3_Hayao',
|
|
|
105 |
article=article,
|
106 |
allow_flagging="never",
|
107 |
examples=[['samples/7_out.jpg', 'AnimeGANv3_Arcane', "Yes"], ['samples/15566.jpg', 'AnimeGANv3_USA', "Yes"],['samples/23034.jpg', 'AnimeGANv3_Trump v1.0', "Yes"], ['samples/jp_13.jpg', 'AnimeGANv3_Hayao', "No"],
|
108 |
+
['samples/jp_20.jpg', 'AnimeGANv3_Shinkai', "No"], ['samples/Hamabe Minami.jpg', 'AnimeGANv3_Disney v1.0', "Yes"], ['samples/120.jpg', 'AnimeGANv3_JP_face v1.0', "Yes"], ['samples/52014.jpg', 'AnimeGANv3_PortraitSketch', "Yes"]]).launch(enable_queue=True)
|
samples/120.jpg
ADDED
samples/Hamabe Minami.jpg
ADDED