We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 936cd08 commit 1f49a34Copy full SHA for 1f49a34
1 file changed
src/diffusers/configuration_utils.py
@@ -208,7 +208,9 @@ def get_config_dict(
208
def extract_init_dict(cls, config_dict, **kwargs):
209
expected_keys = set(dict(inspect.signature(cls.__init__).parameters).keys())
210
expected_keys.remove("self")
211
- expected_keys.remove("kwargs")
+ # remove general kwargs if present in dict
212
+ if "kwargs" in expected_keys:
213
+ expected_keys.remove("kwargs")
214
init_dict = {}
215
for key in expected_keys:
216
if key in kwargs:
0 commit comments