1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Support SDXL embedding format with 2 CLIP.

This commit is contained in:
comfyanonymous
2023-07-10 10:28:38 -04:00
parent 6ad0a6d7e2
commit 606a537090
3 changed files with 9 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ class SD15(LatentFormat):
class SDXL(LatentFormat):
def __init__(self):
self.scale_factor = 0.13025
self.latent_rgb_factors = [ #TODO: these are the factors for SD1.5, need to estimate new ones for SDXL
self.latent_rgb_factors = [
# R G B
[ 0.3920, 0.4054, 0.4549],
[-0.2634, -0.0196, 0.0653],