Display class name in model error message

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
Emmanuel Ferdman
2025-04-25 09:52:25 -07:00
parent 676af4c4f0
commit 0d34b3df6d
3 changed files with 3 additions and 3 deletions

View File

@@ -286,7 +286,7 @@ class StableDiffusionInpaintPipeline(
if safety_checker is not None and feature_extractor is None:
raise ValueError(
"Make sure to define a feature extractor when loading {self.__class__} if you want to use the safety"
f"Make sure to define a feature extractor when loading {self.__class__} if you want to use the safety"
" checker. If you do not want to use the safety checker, you can pass `'safety_checker=None'` instead."
)