Spaces:
Running
on
Zero
Running
on
Zero
adaface-neurips
commited on
Commit
•
81f8834
1
Parent(s):
62cfb53
fix min/max bug
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ def gen_init_images(uploaded_image_paths, prompt, adaface_id_cfg_scale, out_imag
|
|
77 |
# Extract the file paths.
|
78 |
uploaded_image_paths = [path[0] for path in uploaded_image_paths]
|
79 |
# gen_init_images() uses a larger adaface_id_cfg_scale to generate more authentic faces.
|
80 |
-
adaface_id_cfg_scale_ =
|
81 |
adaface_subj_embs = \
|
82 |
adaface.generate_adaface_embeddings(image_folder=None, image_paths=uploaded_image_paths,
|
83 |
out_id_embs_scale=adaface_id_cfg_scale_, update_text_encoder=True)
|
|
|
77 |
# Extract the file paths.
|
78 |
uploaded_image_paths = [path[0] for path in uploaded_image_paths]
|
79 |
# gen_init_images() uses a larger adaface_id_cfg_scale to generate more authentic faces.
|
80 |
+
adaface_id_cfg_scale_ = min(6, adaface_id_cfg_scale * 2)
|
81 |
adaface_subj_embs = \
|
82 |
adaface.generate_adaface_embeddings(image_folder=None, image_paths=uploaded_image_paths,
|
83 |
out_id_embs_scale=adaface_id_cfg_scale_, update_text_encoder=True)
|