feat: allow the P-H3-Image text encoder for MiniMax-H3-Image (#2337)

This commit is contained in:
Artem authored and GitHub committed 2026-11-12 23:20:18 +08:00
1 parent 766ce0ec4e
commit 8b1e9df27d
4 files changed
+38 -7

No files matched your search

+1 -1
View File
@@ -1741,7 +1741,7 @@ std::string convert_tensor_name(std::string name, SDVersion version) {
const std::vector<std::pair<std::string, std::string>> connector_prefix_map = {
{"embeddings_connectors.text_encoders.", "text_encoders."},
{"embeddings_connectors.", version == VERSION_P_H3_IMAGE ? "text_encoders.ph3_image_connector." : ""},
{"embeddings_connectors.", sd_version_is_minimax_h3_image(version) ? "text_encoders.ph3_image_connector." : ""},
};
replace_with_prefix_map(name, connector_prefix_map);