mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
when no callback used, modify results list so that upscaled/face-fixed image replaces the old one
This commit is contained in:
parent
05061a70b3
commit
03d8eb19e0
@ -350,6 +350,8 @@ class T2I:
|
|||||||
image_callback(image, seed)
|
image_callback(image, seed)
|
||||||
else:
|
else:
|
||||||
image_callback(image, seed, upscaled=True)
|
image_callback(image, seed, upscaled=True)
|
||||||
|
else: # no callback passed, so we simply replace old image with rescaled one
|
||||||
|
result[0] = image
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('*interrupted*')
|
print('*interrupted*')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user