Spaces:
Runtime error
Runtime error
change text + add cuda
Browse files- models/model_settings.py +1 -1
- utils/constants.py +2 -1
models/model_settings.py
CHANGED
@@ -97,6 +97,6 @@ STYLEGAN_TRUNCATION_LAYERS = 8 # 0 means no truncation
|
|
97 |
STYLEGAN_RANDOMIZE_NOISE = False
|
98 |
|
99 |
# Settings for model running.
|
100 |
-
USE_CUDA =
|
101 |
|
102 |
MAX_IMAGES_ON_DEVICE = 8
|
|
|
97 |
STYLEGAN_RANDOMIZE_NOISE = False
|
98 |
|
99 |
# Settings for model running.
|
100 |
+
USE_CUDA = True
|
101 |
|
102 |
MAX_IMAGES_ON_DEVICE = 8
|
utils/constants.py
CHANGED
@@ -9,7 +9,7 @@ VALID_CHOICES = [
|
|
9 |
"Smiling",
|
10 |
"Gray_Hair",
|
11 |
]
|
12 |
-
ENABLE_GPU =
|
13 |
MODEL_NAME = "stylegan_ffhq"
|
14 |
OUTPUT_LIST = [
|
15 |
gr.outputs.Image(type="pil", label="Generated Images"),
|
@@ -41,6 +41,7 @@ This is an interactive demo of an extension of the <a href="https://genforce.git
|
|
41 |
<li>🔥 Submit!</li>
|
42 |
</ul>
|
43 |
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>.
|
|
|
44 |
|
45 |
</center>
|
46 |
</p>
|
|
|
9 |
"Smiling",
|
10 |
"Gray_Hair",
|
11 |
]
|
12 |
+
ENABLE_GPU = True
|
13 |
MODEL_NAME = "stylegan_ffhq"
|
14 |
OUTPUT_LIST = [
|
15 |
gr.outputs.Image(type="pil", label="Generated Images"),
|
|
|
41 |
<li>🔥 Submit!</li>
|
42 |
</ul>
|
43 |
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>.
|
44 |
+
⭕ This method is biased on the data it has been trained for attribute recognition. E.g. if you decide to modify the "Bald" attribute on Female faces, the method will turn it into Male faces. Future work may focus more on this direction to try to have unbiased results of the modifications.
|
45 |
|
46 |
</center>
|
47 |
</p>
|