Skip to content

Commit a8a3bad

Browse files
committed
feat: add Flux.2 VAE proj matrix for previews
1 parent 66e27de commit a8a3bad

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

latent-preview.h

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,41 @@ const float flux_latent_rgb_proj[16][3] = {
9191
{-0.111849f, -0.055589f, -0.032361f}};
9292
float flux_latent_rgb_bias[3] = {0.024600f, -0.006937f, -0.008089f};
9393

94+
const float flux_2_latent_rgb_proj[32][3] = {
95+
{0.000736f, -0.008385f, -0.019710f},
96+
{-0.001352f, -0.016392f, 0.020693f},
97+
{-0.006376f, 0.002428f, 0.036736f},
98+
{0.039384f, 0.074167f, 0.119789f},
99+
{0.007464f, -0.005705f, -0.004734f},
100+
{-0.004086f, 0.005287f, -0.000409f},
101+
{-0.032835f, 0.050802f, -0.028120f},
102+
{-0.003158f, -0.000835f, 0.000406f},
103+
{-0.112840f, -0.084337f, -0.023083f},
104+
{0.001462f, -0.006656f, 0.000549f},
105+
{-0.009980f, -0.007480f, 0.009702f},
106+
{0.032540f, 0.000214f, -0.061388f},
107+
{0.011023f, 0.000694f, 0.007143f},
108+
{-0.001468f, -0.006723f, -0.001678f},
109+
{-0.005921f, -0.010320f, -0.003907f},
110+
{-0.028434f, 0.027584f, 0.018457f},
111+
{0.014349f, 0.011523f, 0.000441f},
112+
{0.009874f, 0.003081f, 0.001507f},
113+
{0.002218f, 0.005712f, 0.001563f},
114+
{0.053010f, -0.019844f, 0.008683f},
115+
{-0.002507f, 0.005384f, 0.000938f},
116+
{-0.002177f, -0.011366f, 0.003559f},
117+
{-0.000261f, 0.015121f, -0.003240f},
118+
{-0.003944f, -0.002083f, 0.005043f},
119+
{-0.009138f, 0.011336f, 0.003781f},
120+
{0.011429f, 0.003985f, -0.003855f},
121+
{0.010518f, -0.005586f, 0.010131f},
122+
{0.007883f, 0.002912f, -0.001473f},
123+
{-0.003318f, -0.003160f, 0.003684f},
124+
{-0.034560f, -0.008740f, 0.012996f},
125+
{0.000166f, 0.001079f, -0.012153f},
126+
{0.017772f, 0.000937f, -0.011953f}};
127+
float flux_2_latent_rgb_bias[3] = {-0.028738f, -0.098463f, -0.107619f};
128+
94129
// This one was taken straight from
95130
// https://github.com/Stability-AI/sd3.5/blob/8565799a3b41eb0c7ba976d18375f0f753f56402/sd3_impls.py#L288-L303
96131
// (MiT Licence)

0 commit comments

Comments
 (0)