Fixed "CodeFormer visibility:" rounding to 2 decimals.

This commit is contained in:
Dement242 2022-09-17 21:02:46 +02:00 committed by GitHub
parent 23a0ec04c0
commit 33434fc6fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ def run_extras(image, image_folder, gfpgan_visibility, codeformer_visibility, co
if codeformer_visibility < 1.0: if codeformer_visibility < 1.0:
res = Image.blend(image, res, codeformer_visibility) res = Image.blend(image, res, codeformer_visibility)
info += f"CodeFormer w: {round(codeformer_weight, 2)}, CodeFormer visibility:{round(codeformer_visibility)}\n" info += f"CodeFormer w: {round(codeformer_weight, 2)}, CodeFormer visibility:{round(codeformer_visibility, 2)}\n"
image = res image = res
if upscaling_resize != 1.0: if upscaling_resize != 1.0: