inherit Radiance LatentFormat class

This commit is contained in:
silveroxides 2026-03-01 10:44:33 +01:00
parent cbca4c29cf
commit 4b2b088272

View File

@ -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