From 3ffffa6929dd4709ad83aa3dec66f99cd628e23a Mon Sep 17 00:00:00 2001 From: leejet Date: Sun, 3 Sep 2023 21:10:08 +0800 Subject: [PATCH] fix: do not check weights of open clip last layer --- stable-diffusion.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stable-diffusion.cpp b/stable-diffusion.cpp index 0063f1f..1110781 100644 --- a/stable-diffusion.cpp +++ b/stable-diffusion.cpp @@ -3029,6 +3029,9 @@ class StableDiffusionGGML { } bool some_tensor_not_init = false; for (auto pair : tensors) { + if (pair.first.find("cond_stage_model.transformer.text_model.encoder.layers.23") != std::string::npos) { + continue; + } if (tensor_names_in_file.find(pair.first) == tensor_names_in_file.end()) { LOG_ERROR("tensor '%s' not in model file", pair.first.c_str()); some_tensor_not_init = true;