From 4b2b088272f87b6ee20fe25d2e0f8bfdc535b322 Mon Sep 17 00:00:00 2001 From: silveroxides Date: Sun, 1 Mar 2026 10:44:33 +0100 Subject: [PATCH] inherit Radiance LatentFormat class --- comfy/latent_formats.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/comfy/latent_formats.py b/comfy/latent_formats.py index 30fbe43e3..6a57bca1c 100644 --- a/comfy/latent_formats.py +++ b/comfy/latent_formats.py @@ -778,22 +778,8 @@ class ChromaRadiance(LatentFormat): return latent -class ZImagePixelSpace(LatentFormat): +class ZImagePixelSpace(ChromaRadiance): """Pixel-space latent format for ZImage DCT variant. No VAE encoding/decoding — the model operates directly on RGB pixels. """ - latent_channels = 3 - - def __init__(self): - self.latent_rgb_factors = [ - # R G B - [ 1.0, 0.0, 0.0 ], - [ 0.0, 1.0, 0.0 ], - [ 0.0, 0.0, 1.0 ] - ] - - def process_in(self, latent): - return latent - - def process_out(self, latent): - return latent + pass