Skip to content

Commit 4fb14fe

Browse files
committed
fix(tx): align ggml_type to sd_type
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent 40085ae commit 4fb14fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stable-diffusion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ class StableDiffusionGGML {
322322
ggml_type t5xxl_wtype = GGML_TYPE_COUNT;
323323
ggml_type diffusion_model_wtype = GGML_TYPE_COUNT;
324324
ggml_type vae_wtype = GGML_TYPE_COUNT;
325-
if (wtype == GGML_TYPE_COUNT) {
325+
if (wtype >= GGML_TYPE_COUNT) {
326326
model_wtype = model_loader.get_sd_wtype();
327327
if (model_wtype == GGML_TYPE_COUNT) {
328328
model_wtype = GGML_TYPE_F32;

0 commit comments

Comments
 (0)