Merge 6d9f2737d5db248a0c09b58ea253fa857ae931a7 into c176b214cc768d41892add4d4f51c5c5627cbf7b

This commit is contained in:
Homfen 2025-12-22 16:50:11 +01:00 committed by GitHub
commit c90cc0aba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1604,6 +1604,7 @@ class SaveImage:
results = list()
for (batch_number, image) in enumerate(images):
i = 255. * image.cpu().numpy()
i = np.nan_to_num(i, nan=0.0, posinf=255.0, neginf=0.0)
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
metadata = None
if not args.disable_metadata: