• Pedro Cuenca's avatar
    Fix `main`: stable diffusion pipelines cannot be loaded (#655) · 235770dd
    Pedro Cuenca authored
    * Replace deprecation warning f-string with class name.
    
    When `__repr__` is invoked in the instance serialization of
    `config_dict` fails, because it contains `kwargs` of type `<class
    inspect._empty>`.
    
    * Revert "Replace deprecation warning f-string with class name."
    
    This reverts commit 1c4eb8cb104374bd84e43865fc3865862473799c.
    
    * Do not attempt to register `"kwargs"` as an attribute.
    
    Otherwise serialization could fail.
    This may happen for other attributes, so we should create a better
    solution.
    235770dd
configuration_utils.py 20.9 KB