Update app.py
Browse files
app.py
CHANGED
|
@@ -147,7 +147,7 @@ def process(input_type, image_path, video_path, directory_path,
|
|
| 147 |
has_swap = False
|
| 148 |
if source_female_path and os.path.exists(source_female_path):
|
| 149 |
has_swap = True
|
| 150 |
-
for info in run_face_swap(image_sequence, source_female_path, "
|
| 151 |
face_scale, face_enhancer_name, enable_face_parser, mask_includes,
|
| 152 |
mask_soft_kernel, mask_soft_iterations, blur_amount, erode_amount,
|
| 153 |
enable_laplacian_blend, crop_mask):
|
|
@@ -157,7 +157,7 @@ def process(input_type, image_path, video_path, directory_path,
|
|
| 157 |
|
| 158 |
if source_male_path and os.path.exists(source_male_path):
|
| 159 |
has_swap = True
|
| 160 |
-
for info in run_face_swap(image_sequence, source_male_path, "
|
| 161 |
face_scale, face_enhancer_name, enable_face_parser, mask_includes,
|
| 162 |
mask_soft_kernel, mask_soft_iterations, blur_amount, erode_amount,
|
| 163 |
enable_laplacian_blend, crop_mask):
|
|
|
|
| 147 |
has_swap = False
|
| 148 |
if source_female_path and os.path.exists(source_female_path):
|
| 149 |
has_swap = True
|
| 150 |
+
for info in run_face_swap(image_sequence, source_female_path, "All Female", condition, age, distance,
|
| 151 |
face_scale, face_enhancer_name, enable_face_parser, mask_includes,
|
| 152 |
mask_soft_kernel, mask_soft_iterations, blur_amount, erode_amount,
|
| 153 |
enable_laplacian_blend, crop_mask):
|
|
|
|
| 157 |
|
| 158 |
if source_male_path and os.path.exists(source_male_path):
|
| 159 |
has_swap = True
|
| 160 |
+
for info in run_face_swap(image_sequence, source_male_path, "All Male", condition, age, distance,
|
| 161 |
face_scale, face_enhancer_name, enable_face_parser, mask_includes,
|
| 162 |
mask_soft_kernel, mask_soft_iterations, blur_amount, erode_amount,
|
| 163 |
enable_laplacian_blend, crop_mask):
|