mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-01 09:10:16 +08:00
Merge 6d9f2737d5 into c4a14df9a3
This commit is contained in:
commit
30643b02a3
1
nodes.py
1
nodes.py
@ -1611,6 +1611,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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user