We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b44e7f5 commit 54157e4Copy full SHA for 54157e4
1 file changed
src/diffusers/modular_pipelines/modular_pipeline.py
@@ -1623,7 +1623,10 @@ def _load_pipeline_config(
1623
return None, config_dict
1624
1625
except EnvironmentError as e:
1626
- logger.debug(f" model_index.json not found in the repo: {e}")
+ raise EnvironmentError(
1627
+ f"Failed to load config from '{pretrained_model_name_or_path}'. "
1628
+ f"Could not find or load 'modular_model_index.json' or 'model_index.json'."
1629
+ ) from e
1630
1631
return None, None
1632
0 commit comments