We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16f839c commit 28973fcCopy full SHA for 28973fc
latent-preview.h
@@ -91,7 +91,7 @@ const float flux_latent_rgb_proj[16][3] = {
91
{-0.111849f, -0.055589f, -0.032361f}};
92
float flux_latent_rgb_bias[3] = {0.024600f, -0.006937f, -0.008089f};
93
94
-const float flux_2_latent_rgb_proj[32][3] = {
+const float flux2_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},
@@ -124,7 +124,7 @@ const float flux_2_latent_rgb_proj[32][3] = {
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};
+float flux2_latent_rgb_bias[3] = {-0.028738f, -0.098463f, -0.107619f};
128
129
// This one was taken straight from
130
// https://github.com/Stability-AI/sd3.5/blob/8565799a3b41eb0c7ba976d18375f0f753f56402/sd3_impls.py#L288-L303
stable-diffusion.cpp
@@ -1327,6 +1327,11 @@ class StableDiffusionGGML {
1327
// unknown model
1328
return;
1329
}
1330
+ } else if (dim == 32) {
1331
+ if (sd_version_is_flux2(version)) {
1332
+ latent_rgb_proj = flux2_latent_rgb_proj;
1333
+ latent_rgb_bias = flux2_latent_rgb_bias;
1334
+ }
1335
} else if (dim == 16) {
1336
// 16 channels VAE -> Flux or SD3
1337
0 commit comments