[SDXL] SDXL model enabling (#4331)

Signed-off-by: Chendi Xue <chendi.xue@intel.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
Chendi.XueandHongsheng Liu authored and GitHub committed 2026-06-16 22:51:11 +08:00
1 parent 864d22164c
commit e7f0db1067
10 files changed
+1492 -1

No files matched your search

+6 -1
View File
@@ -903,7 +903,12 @@ class OmniDiffusionConfig:
)
else:
tf_config_dict = get_hf_file_to_dict("transformer/config.json", self.model)
self.set_tf_model_config(TransformerConfig.from_dict(tf_config_dict))
if tf_config_dict is None:
tf_config_dict = get_hf_file_to_dict("unet/config.json", self.model)
if tf_config_dict is not None:
self.set_tf_model_config(TransformerConfig.from_dict(tf_config_dict))
else:
self.set_tf_model_config(TransformerConfig())
else:
raise FileNotFoundError("model_index.json not found")
except (AttributeError, OSError, ValueError, FileNotFoundError):