mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Update nodes.py
Remove unnecessary parameter to decode method
This commit is contained in:
parent
519e7760e7
commit
9cfd46b2d9
2
nodes.py
2
nodes.py
@ -280,7 +280,7 @@ class VAEDecode:
|
|||||||
CATEGORY = "latent"
|
CATEGORY = "latent"
|
||||||
DESCRIPTION = "Decodes latent images back into pixel space images."
|
DESCRIPTION = "Decodes latent images back into pixel space images."
|
||||||
|
|
||||||
def decode(self, vae, samples, tile_size=512):
|
def decode(self, vae, samples):
|
||||||
images = vae.decode(samples["samples"])
|
images = vae.decode(samples["samples"])
|
||||||
if len(images.shape) == 5: #Combine batches
|
if len(images.shape) == 5: #Combine batches
|
||||||
images = images.reshape(-1, images.shape[-3], images.shape[-2], images.shape[-1])
|
images = images.reshape(-1, images.shape[-3], images.shape[-2], images.shape[-1])
|
||||||
|
Loading…
Reference in New Issue
Block a user