radames commited on
Commit
1f124ef
1 Parent(s): c7f097c
Files changed (1) hide show
  1. app.py +24 -7
app.py CHANGED
@@ -20,7 +20,7 @@ env = {
20
  }
21
 
22
 
23
- def process(img_path, resolution=128):
24
  base = os.path.basename(img_path)
25
  img_name = os.path.splitext(base)[0]
26
  print("image name", img_name)
@@ -46,14 +46,31 @@ def process(img_path, resolution=128):
46
 
47
  examples = [["./examples/" + img] for img in os.listdir("./examples/")]
48
  description = '''
49
- ### PIFu-upright-standing
50
- Credits
 
51
 
52
- https://stylegan-human.github.io/
53
- https://phorhum.github.io/
54
- https://github.com/yuliangxiu/icon
55
- https://shunsukesaito.github.io/PIFuHD/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  '''
 
57
  iface = gr.Interface(
58
  fn=process,
59
  description=description,
 
20
  }
21
 
22
 
23
+ def process(img_path):
24
  base = os.path.basename(img_path)
25
  img_name = os.path.splitext(base)[0]
26
  print("image name", img_name)
 
46
 
47
  examples = [["./examples/" + img] for img in os.listdir("./examples/")]
48
  description = '''
49
+ # PIFu Clothed Human Digitization
50
+ # PIFu: Pixel-Aligned Implicit Function for High-Resolution Clothed Human Digitization
51
+ <base target="_blank">
52
 
53
+ This is a demo for <a href="https://github.com/shunsukesaito/PIFu" target="_blank"> PIFu model </a>.
54
+ The pre-trained model has the following warning:
55
+ > Warning: The released model is trained with mostly upright standing scans with weak perspectie projection and the pitch angle of 0 degree. Reconstruction quality may degrade for images highly deviated from trainining data.
56
+
57
+ <details>
58
+ <summary>More</summary>
59
+
60
+ #### Image Credits
61
+
62
+ * Julien and Clem
63
+ * [StyleGAN Humans](https://huggingface.co/spaces/hysts/StyleGAN-Human)
64
+ * [Renderpeople: Dennis](https://renderpeople.com)
65
+
66
+ #### More
67
+ * https://phorhum.github.io/
68
+ * https://github.com/yuliangxiu/icon
69
+ * https://shunsukesaito.github.io/PIFuHD/
70
+
71
+ </details>
72
  '''
73
+
74
  iface = gr.Interface(
75
  fn=process,
76
  description=description,