Skip to content

Commit 16d56fb

Browse files
stduhpfthxCode
authored andcommitted
preview: use new helper functions
1 parent e8afe39 commit 16d56fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/cli/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,9 +800,9 @@ void step_callback(int step, struct ggml_tensor* latents, enum SDVersion version
800800
if (dim == 16) {
801801
// 16 channels VAE -> Flux or SD3
802802

803-
if (version == VERSION_SD3_2B || version == VERSION_SD3_5_8B /* || version == VERSION_SD3_5_2B*/) {
803+
if (sd_version_is_sd3(version)) {
804804
latent_rgb_proj = sd3_latent_rgb_proj;
805-
} else if (version == VERSION_FLUX_DEV || version == VERSION_FLUX_SCHNELL) {
805+
} else if (sd_version_is_flux(version)) {
806806
latent_rgb_proj = flux_latent_rgb_proj;
807807
} else {
808808
// unknown model

0 commit comments

Comments
 (0)