adjusted -U upscaling argument so that it defaults to upscaling strength 0.75 if the second argument is not given

This commit is contained in:
Lincoln Stein
2022-08-28 17:26:39 -04:00
parent 36bc989a27
commit 7c485a1a4a
3 changed files with 59 additions and 29 deletions

View File

@@ -320,7 +320,8 @@ class T2I:
from ldm.gfpgan.gfpgan_tools import (
real_esrgan_upscale,
)
if len(upscale) < 2:
upscale.append(0.75)
image = real_esrgan_upscale(
image,
upscale[1],