Spaces:
Runtime error
Runtime error
modify description
Browse files- utils/constants.py +11 -3
utils/constants.py
CHANGED
|
@@ -8,7 +8,15 @@ VALID_CHOICES = [
|
|
| 8 |
"Hat",
|
| 9 |
"Smiling",
|
| 10 |
"Male",
|
| 11 |
-
"Beard"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
]
|
| 13 |
ENABLE_GPU = False
|
| 14 |
MODEL_NAME = "stylegan_ffhq"
|
|
@@ -17,13 +25,13 @@ OUTPUT_LIST = [
|
|
| 17 |
gr.outputs.Image(type="pil", label="Modified Images"),
|
| 18 |
]
|
| 19 |
description = """
|
| 20 |
-
This is an interactive demo of an extension of the
|
| 21 |
+ ๐พ Select the Random seed you want to use to generate the images
|
| 22 |
+ 🗂 Select the list of attributes you want to modify (of course, you can mix several attributes)
|
| 23 |
+ ๐ Select the coefficient of modification (higher value means stronger modification)
|
| 24 |
+ ๐ฅ Submit!
|
| 25 |
|
| 26 |
-
Check the
|
| 27 |
|
| 28 |
</center>
|
| 29 |
</p>
|
|
|
|
| 8 |
"Hat",
|
| 9 |
"Smiling",
|
| 10 |
"Male",
|
| 11 |
+
"Beard",
|
| 12 |
+
"Gray_Hair",
|
| 13 |
+
"Goatee",
|
| 14 |
+
"Brown_Hair",
|
| 15 |
+
"Blond_Hair",
|
| 16 |
+
"Straight_Hair",
|
| 17 |
+
"Wavy_Hair",
|
| 18 |
+
"Wearing_Earrings",
|
| 19 |
+
"Wearing_Necklace",
|
| 20 |
]
|
| 21 |
ENABLE_GPU = False
|
| 22 |
MODEL_NAME = "stylegan_ffhq"
|
|
|
|
| 25 |
gr.outputs.Image(type="pil", label="Modified Images"),
|
| 26 |
]
|
| 27 |
description = """
|
| 28 |
+
This is an interactive demo of an extension of the <a href="https://genforce.github.io/interfacegan/">CVPR2020 InterfaceGAN paper</a>, by adding other attributes such as Hat, Bald, etc. to the generated images. Here is a step-by-step guide to use this interface:
|
| 29 |
+ ๐พ Select the Random seed you want to use to generate the images
|
| 30 |
+ 🗂 Select the list of attributes you want to modify (of course, you can mix several attributes)
|
| 31 |
+ ๐ Select the coefficient of modification (higher value means stronger modification)
|
| 32 |
+ ๐ฅ Submit!
|
| 33 |
|
| 34 |
+
Check the <a href="https://github.com/genforce/interfacegan">original repo</a> as well as the <a href="https://github.com/younesbelkada/interfacegan">extended version of the work</a>.
|
| 35 |
|
| 36 |
</center>
|
| 37 |
</p>
|