Skip to content

Commit 3ffffa6

Browse files
committed
fix: do not check weights of open clip last layer
1 parent 4584286 commit 3ffffa6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stable-diffusion.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,6 +3029,9 @@ class StableDiffusionGGML {
30293029
}
30303030
bool some_tensor_not_init = false;
30313031
for (auto pair : tensors) {
3032+
if (pair.first.find("cond_stage_model.transformer.text_model.encoder.layers.23") != std::string::npos) {
3033+
continue;
3034+
}
30323035
if (tensor_names_in_file.find(pair.first) == tensor_names_in_file.end()) {
30333036
LOG_ERROR("tensor '%s' not in model file", pair.first.c_str());
30343037
some_tensor_not_init = true;

0 commit comments

Comments
 (0)