fix: do not check weights of open clip last layer
This commit is contained in:
parent
45842865ff
commit
3ffffa6929
@ -3029,6 +3029,9 @@ class StableDiffusionGGML {
|
|||||||
}
|
}
|
||||||
bool some_tensor_not_init = false;
|
bool some_tensor_not_init = false;
|
||||||
for (auto pair : tensors) {
|
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()) {
|
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());
|
LOG_ERROR("tensor '%s' not in model file", pair.first.c_str());
|
||||||
some_tensor_not_init = true;
|
some_tensor_not_init = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user