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
18c151b3
Commit
18c151b3
authored
Feb 20, 2024
by
comfyanonymous
Browse files
Add some latent2rgb matrices for previews.
parent
0d0fbabd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
comfy/latent_formats.py
comfy/latent_formats.py
+30
-0
No files found.
comfy/latent_formats.py
View file @
18c151b3
...
@@ -37,11 +37,41 @@ class SDXL(LatentFormat):
...
@@ -37,11 +37,41 @@ class SDXL(LatentFormat):
class
SD_X4
(
LatentFormat
):
class
SD_X4
(
LatentFormat
):
def
__init__
(
self
):
def
__init__
(
self
):
self
.
scale_factor
=
0.08333
self
.
scale_factor
=
0.08333
self
.
latent_rgb_factors
=
[
[
-
0.2340
,
-
0.3863
,
-
0.3257
],
[
0.0994
,
0.0885
,
-
0.0908
],
[
-
0.2833
,
-
0.2349
,
-
0.3741
],
[
0.2523
,
-
0.0055
,
-
0.1651
]
]
class
SC_Prior
(
LatentFormat
):
class
SC_Prior
(
LatentFormat
):
def
__init__
(
self
):
def
__init__
(
self
):
self
.
scale_factor
=
1.0
self
.
scale_factor
=
1.0
self
.
latent_rgb_factors
=
[
[
-
0.0326
,
-
0.0204
,
-
0.0127
],
[
-
0.1592
,
-
0.0427
,
0.0216
],
[
0.0873
,
0.0638
,
-
0.0020
],
[
-
0.0602
,
0.0442
,
0.1304
],
[
0.0800
,
-
0.0313
,
-
0.1796
],
[
-
0.0810
,
-
0.0638
,
-
0.1581
],
[
0.1791
,
0.1180
,
0.0967
],
[
0.0740
,
0.1416
,
0.0432
],
[
-
0.1745
,
-
0.1888
,
-
0.1373
],
[
0.2412
,
0.1577
,
0.0928
],
[
0.1908
,
0.0998
,
0.0682
],
[
0.0209
,
0.0365
,
-
0.0092
],
[
0.0448
,
-
0.0650
,
-
0.1728
],
[
-
0.1658
,
-
0.1045
,
-
0.1308
],
[
0.0542
,
0.1545
,
0.1325
],
[
-
0.0352
,
-
0.1672
,
-
0.2541
]
]
class
SC_B
(
LatentFormat
):
class
SC_B
(
LatentFormat
):
def
__init__
(
self
):
def
__init__
(
self
):
self
.
scale_factor
=
1.0
self
.
scale_factor
=
1.0
self
.
latent_rgb_factors
=
[
[
0.1121
,
0.2006
,
0.1023
],
[
-
0.2093
,
-
0.0222
,
-
0.0195
],
[
-
0.3087
,
-
0.1535
,
0.0366
],
[
0.0290
,
-
0.1574
,
-
0.4078
]
]
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