Merge pull request #2 from silveroxides/zeta-x0-dino-patch

inherit Radiance LatentFormat class
This commit is contained in:
Lodestone 2026-03-01 17:54:36 +07:00 committed by GitHub
commit 383a739558
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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