MCPcopy
hub / github.com/huggingface/diffusers / from_config

Method from_config

src/diffusers/configuration_utils.py:795–805  ·  view source on GitHub ↗
(cls, config: FrozenDict | dict[str, Any] = None, return_unused_kwargs=False, **kwargs)

Source from the content-addressed store, hash-verified

793
794 @classmethod
795 def from_config(cls, config: FrozenDict | dict[str, Any] = None, return_unused_kwargs=False, **kwargs):
796 # To prevent dependency import problem.
797 from .models.model_loading_utils import _fetch_remapped_cls_from_config
798
799 # resolve remapping
800 remapped_class = _fetch_remapped_cls_from_config(config, cls)
801
802 if remapped_class is cls:
803 return super(LegacyConfigMixin, remapped_class).from_config(config, return_unused_kwargs, **kwargs)
804 else:
805 return remapped_class.from_config(config, return_unused_kwargs, **kwargs)

Callers

nothing calls this directly

Calls 2

from_configMethod · 0.45

Tested by

no test coverage detected