MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / get_model

Function get_model

diffusers/src/diffusers/pipelines/auto_pipeline.py:216–220  ·  view source on GitHub ↗
(pipeline_class_name)

Source from the content-addressed store, hash-verified

214
215def _get_task_class(mapping, pipeline_class_name, throw_error_if_not_exist: bool = True):
216 def get_model(pipeline_class_name):
217 for task_mapping in SUPPORTED_TASKS_MAPPINGS:
218 for model_name, pipeline in task_mapping.items():
219 if pipeline.__name__ == pipeline_class_name:
220 return model_name
221
222 model_name = get_model(pipeline_class_name)
223

Callers 1

_get_task_classFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected