Haiyu Wu
commited on
Commit
·
943550b
1
Parent(s):
65b2a50
update
Browse files
app.py
CHANGED
@@ -149,6 +149,7 @@ def select_image(value, images):
|
|
149 |
index = int(value / 2)
|
150 |
return images[index]
|
151 |
|
|
|
152 |
def toggle_inputs(random_perturbation):
|
153 |
return [
|
154 |
gr.update(visible=random_perturbation, interactive=random_perturbation), # sigma
|
@@ -171,7 +172,7 @@ def main():
|
|
171 |
|
172 |
How to use:<br>
|
173 |
1. Upload an image with a cropped face image or directly click <b>Submit</b> button, three images will be shown on the right.
|
174 |
-
2. You can control the image quality,
|
175 |
3. The output results will shown three results of dimension modification or vector perturbation.
|
176 |
4. Enjoy! 😊
|
177 |
"""
|
|
|
149 |
index = int(value / 2)
|
150 |
return images[index]
|
151 |
|
152 |
+
|
153 |
def toggle_inputs(random_perturbation):
|
154 |
return [
|
155 |
gr.update(visible=random_perturbation, interactive=random_perturbation), # sigma
|
|
|
172 |
|
173 |
How to use:<br>
|
174 |
1. Upload an image with a cropped face image or directly click <b>Submit</b> button, three images will be shown on the right.
|
175 |
+
2. You can control the image quality, perturb the ID vector, and modify the values in the target dimensions to change the output images.
|
176 |
3. The output results will shown three results of dimension modification or vector perturbation.
|
177 |
4. Enjoy! 😊
|
178 |
"""
|