fix: do not check weights of open clip last layer

This commit is contained in:
leejet 2023-09-03 21:10:08 +08:00
parent 45842865ff
commit 3ffffa6929

View File

@ -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;