Haoming02 / comfyui-diffusion-cg

Custom Nodes for ComfyUI that perform color grading based on the latent tensor value range
MIT License
85 stars 9 forks source link

Clone latent to prevent side effects #5

Closed pamparamm closed 11 months ago

pamparamm commented 11 months ago

Normalization is currently applied directly to latent['samples']. This may cause various side effects (ie, bypassing already applied normalization still returns normalized latents). We can fix this by cloning input samples and incapsulating them in a new latent.