fix decode-image exception

Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
vladmandic
2026-01-05 20:07:33 +01:00
parent a846a90fca
commit 7f9cc66045
+6 -3
View File
@@ -299,10 +299,13 @@ def decode_images(image):
return helpers.decode_base64_to_image(image, quiet=True)
except Exception as e:
shared.log.error(f'Decode image: {e}')
elif isinstance(image, Image.Image):
return image
# elif isinstance(image, Image.Image):
# return image
# elif torch.is_tensor(image):
# return image
else:
shared.log.error(f'Decode image: {type(image)} unknown type')
return image
# shared.log.error(f'Decode image: {type(image)} unknown type')
return None