Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
d5323d16
Commit
d5323d16
authored
Jul 09, 2023
by
comfyanonymous
Browse files
latent2rgb matrix for SDXL.
parent
0ae81c03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
comfy/latent_formats.py
comfy/latent_formats.py
+8
-8
No files found.
comfy/latent_formats.py
View file @
d5323d16
...
@@ -11,10 +11,10 @@ class SD15(LatentFormat):
...
@@ -11,10 +11,10 @@ class SD15(LatentFormat):
self
.
scale_factor
=
scale_factor
self
.
scale_factor
=
scale_factor
self
.
latent_rgb_factors
=
[
self
.
latent_rgb_factors
=
[
# R G B
# R G B
[
0.
298
,
0.2
0
7
,
0.
208
],
# L1
[
0.
3512
,
0.2
29
7
,
0.
3227
],
[
0.187
,
0.286
,
0.
173
],
# L2
[
0.3250
,
0.
4974
,
0.2350
],
[
-
0.
158
,
0.189
,
0.264
],
# L3
[
-
0.
2829
,
0.1762
,
0.2721
],
[
-
0.
184
,
-
0.2
71
,
-
0.
473
],
# L4
[
-
0.
2120
,
-
0.2
616
,
-
0.
7177
]
]
]
self
.
taesd_decoder_name
=
"taesd_decoder.pth"
self
.
taesd_decoder_name
=
"taesd_decoder.pth"
...
@@ -23,9 +23,9 @@ class SDXL(LatentFormat):
...
@@ -23,9 +23,9 @@ class SDXL(LatentFormat):
self
.
scale_factor
=
0.13025
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
=
[
#TODO: these are the factors for SD1.5, need to estimate new ones for SDXL
# R G B
# R G B
[
0.
298
,
0.207
,
0.208
],
# L1
[
0.
3920
,
0.4054
,
0.4549
],
[
0.
187
,
0.
28
6
,
0.
173
],
# L2
[
-
0.
2634
,
-
0.
019
6
,
0.
0653
],
[
-
0.
15
8
,
0.1
89
,
0.
264
],
# L3
[
0.
056
8
,
0.1
687
,
-
0.
0755
],
[
-
0.
184
,
-
0.2
71
,
-
0.
473
],
# L4
[
-
0.
3112
,
-
0.2
359
,
-
0.
2076
]
]
]
self
.
taesd_decoder_name
=
"taesdxl_decoder.pth"
self
.
taesd_decoder_name
=
"taesdxl_decoder.pth"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment