mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-10-21 06:19:58 +08:00
feat: add Z-Image L2P support (#2075)
This commit is contained in:
@@ -527,6 +527,9 @@ SDVersion ModelLoader::get_sd_version() const {
|
||||
if (tensor_storage_map.find("text_encoders.llm.connector.layers.0.self_attn.q_proj.weight") != tensor_storage_map.end()) {
|
||||
return VERSION_MING_IMAGE;
|
||||
}
|
||||
if (tensor_storage_map.find("model.diffusion_model.local_decoder.out_conv.weight") != tensor_storage_map.end()) {
|
||||
return VERSION_Z_IMAGE_L2P;
|
||||
}
|
||||
return VERSION_Z_IMAGE;
|
||||
}
|
||||
if (tensor_storage.name.find("double_stream_layers.0.img_instruct_attn.processor.img_to_q.weight") != std::string::npos) {
|
||||
|
||||
Reference in New Issue
Block a user