mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-06-16 04:49:35 +08:00
inherit Radiance LatentFormat class
This commit is contained in:
parent
cbca4c29cf
commit
4b2b088272
@ -778,22 +778,8 @@ class ChromaRadiance(LatentFormat):
|
|||||||
return latent
|
return latent
|
||||||
|
|
||||||
|
|
||||||
class ZImagePixelSpace(LatentFormat):
|
class ZImagePixelSpace(ChromaRadiance):
|
||||||
"""Pixel-space latent format for ZImage DCT variant.
|
"""Pixel-space latent format for ZImage DCT variant.
|
||||||
No VAE encoding/decoding — the model operates directly on RGB pixels.
|
No VAE encoding/decoding — the model operates directly on RGB pixels.
|
||||||
"""
|
"""
|
||||||
latent_channels = 3
|
pass
|
||||||
|
|
||||||
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
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user