Xin commited on
Commit
030c91d
β€’
1 Parent(s): 9c00d3d

add a new face style

Browse files
Files changed (5) hide show
  1. AnimeGANv3_bin.so +2 -2
  2. AnimeGANv3_src.so +2 -2
  3. app.py +5 -2
  4. samples/1_out.jpg +0 -0
  5. samples/23034.jpg +0 -0
AnimeGANv3_bin.so CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d8126a9d5f23395721b8144bf9322cd128c56ae6ab1dad6cba3f55a657c20b06
3
- size 38041400
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca30598883eee7b686f4286cb82cf3a1ce343f082aa6a38d680df903bb920050
3
+ size 44701808
AnimeGANv3_src.so CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:73aa85994f3b1b6ca85272091946b09476378067998649224699ad1e6901cf26
3
- size 446088
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:beba25aa2d8ad279452f72c490d3ebd9d934ea49122f97ea6264f06beee32c96
3
+ size 451240
app.py CHANGED
@@ -14,6 +14,8 @@ def inference(img_path, Style, if_face=None):
14
  img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
15
  if Style == "AnimeGANv3_Arcane":
16
  f = "A"
 
 
17
  elif Style == "AnimeGANv3_Shinkai":
18
  f = "S"
19
  elif Style == "AnimeGANv3_PortraitSketch":
@@ -39,7 +41,7 @@ def inference(img_path, Style, if_face=None):
39
  title = "AnimeGANv3: To produce your own animation."
40
  description = r"""Official online demo for <a href='https://github.com/TachibanaYoshino/AnimeGANv3' target='_blank'><b>AnimeGANv3</b></a>. If you like what I'm doing you can tip me on <a href='https://www.patreon.com/Asher_Chan' target='_blank'><b>**patreon**</b></a>.<br>
41
  It can be used to turn your photos or videos into anime.<br>
42
- To use it, simply upload your image. It can convert landscape photos to Hayao Miyazaki or Makoto Shinkai style anime, as well as 3 style conversions about human faces.<br>
43
  If AnimeGANv3 is helpful, please help to ⭐ the <a href='https://github.com/TachibanaYoshino/AnimeGANv3' target='_blank'>Github Repo</a> and recommend it to your friends. 😊
44
 
45
  """
@@ -74,6 +76,7 @@ gr.Interface(
74
  'AnimeGANv3_Shinkai',
75
  'AnimeGANv3_Arcane',
76
  'AnimeGANv3_USA',
 
77
  'AnimeGANv3_PortraitSketch',
78
  ],
79
  type="value",
@@ -88,5 +91,5 @@ gr.Interface(
88
  description=description,
89
  article=article,
90
  allow_flagging="never",
91
- examples=[['samples/7_out.jpg', 'AnimeGANv3_Arcane', "Yes"], ['samples/15566.jpg', 'AnimeGANv3_USA', "Yes"], ['samples/jp_13.jpg', 'AnimeGANv3_Hayao', "No"],
92
  ['samples/jp_20.jpg', 'AnimeGANv3_Shinkai', "No"], ['samples/52014.jpg', 'AnimeGANv3_PortraitSketch', "Yes"]]).launch(enable_queue=True)
 
14
  img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
15
  if Style == "AnimeGANv3_Arcane":
16
  f = "A"
17
+ if Style == "AnimeGANv3_Trump":
18
+ f = "T"
19
  elif Style == "AnimeGANv3_Shinkai":
20
  f = "S"
21
  elif Style == "AnimeGANv3_PortraitSketch":
 
41
  title = "AnimeGANv3: To produce your own animation."
42
  description = r"""Official online demo for <a href='https://github.com/TachibanaYoshino/AnimeGANv3' target='_blank'><b>AnimeGANv3</b></a>. If you like what I'm doing you can tip me on <a href='https://www.patreon.com/Asher_Chan' target='_blank'><b>**patreon**</b></a>.<br>
43
  It can be used to turn your photos or videos into anime.<br>
44
+ To use it, simply upload your image. It can convert landscape photos to Hayao Miyazaki or Makoto Shinkai style anime, as well as 4 style conversions about human faces.<br>
45
  If AnimeGANv3 is helpful, please help to ⭐ the <a href='https://github.com/TachibanaYoshino/AnimeGANv3' target='_blank'>Github Repo</a> and recommend it to your friends. 😊
46
 
47
  """
 
76
  'AnimeGANv3_Shinkai',
77
  'AnimeGANv3_Arcane',
78
  'AnimeGANv3_USA',
79
+ 'AnimeGANv3_Trump',
80
  'AnimeGANv3_PortraitSketch',
81
  ],
82
  type="value",
 
91
  description=description,
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', "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)
samples/1_out.jpg ADDED
samples/23034.jpg ADDED