1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 07:26:31 +08:00

Use torch.nn.functional.linear in RGB preview code.

Add an optional bias to the latent RGB preview code.
This commit is contained in:
comfyanonymous
2024-09-29 11:13:53 -04:00
parent 3bb4dec720
commit a9e459c2a4
2 changed files with 13 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ class LatentFormat:
scale_factor = 1.0
latent_channels = 4
latent_rgb_factors = None
latent_rgb_factors_bias = None
taesd_decoder_name = None
def process_in(self, latent):