We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 862a658 commit 997bb11Copy full SHA for 997bb11
1 file changed
src/auto_encoder_kl.hpp
@@ -613,6 +613,9 @@ class AutoEncoderKLModel : public GGMLBlock {
613
614
int get_encoder_output_channels() {
615
int factor = dd_config.double_z ? 2 : 1;
616
+ if (sd_version_is_flux2(version)) {
617
+ return dd_config.z_channels * 4;
618
+ }
619
return dd_config.z_channels * factor;
620
}
621
};
@@ -927,4 +930,4 @@ struct AutoEncoderKL : public VAE {
927
930
928
931
929
932
-#endif // __AUTO_ENCODER_KL_HPP__
933
+#endif // __AUTO_ENCODER_KL_HPP__
0 commit comments