mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
Fix LBM output never resized back to input dimensions
PIL Image.resize returns a new image; the result was discarded, so the final output stayed at the snapped aspect-ratio bucket size instead of being restored to the original input size. https: //claude.ai/code/session_014QWKWgKvMevcuvfCnsYoT2 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ class LBMScript(scripts_manager.Script):
|
||||
model.to(device=devices.cpu)
|
||||
|
||||
if output_image is not None:
|
||||
output_image.resize((ori_h_bg, ori_w_bg))
|
||||
output_image = output_image.resize((ori_h_bg, ori_w_bg))
|
||||
return processing.get_processed(p, [output_image])
|
||||
else:
|
||||
return processing.Processed(p, [])
|
||||
|
||||
Reference in New Issue
Block a user