asymmetric vae v2 and libvips support

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-03-16 19:51:38 -04:00
parent 942553a504
commit d4dff967b3
4 changed files with 69 additions and 7 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class ScriptPostprocessingUpscale(scripts_postprocessing.ScriptPostprocessing):
info["Postprocess upscale to"] = f"{upscale_to_width}x{upscale_to_height}"
else:
info["Postprocess upscale by"] = upscale_by
image = upscaler.scaler.upscale(image, upscale_by, upscaler.data_path)
image = upscaler.scaler.upscale(image, upscale_by, upscaler.name)
if upscale_mode == 1 and upscale_crop:
cropped = Image.new("RGB", (upscale_to_width, upscale_to_height))
cropped.paste(image, box=(upscale_to_width // 2 - image.width // 2, upscale_to_height // 2 - image.height // 2))