1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

fix warning message pipeline loading (#3446)

This commit is contained in:
Patrick von Platen
2023-05-16 13:58:24 +02:00
committed by GitHub
parent 326f326e17
commit d2285f5158

View File

@@ -296,8 +296,7 @@ def maybe_raise_or_warn(
if not issubclass(model_cls, expected_class_obj):
raise ValueError(
f"{passed_class_obj[name]} is of type: {type(passed_class_obj[name])}, but should be"
f" {expected_class_obj}"
f"{passed_class_obj[name]} is of type: {model_cls}, but should be" f" {expected_class_obj}"
)
else:
logger.warning(