You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are three types of [AutoPipeline](../api/models/auto_model) classes, [`AutoPipelineForText2Image`], [`AutoPipelineForImage2Image`] and [`AutoPipelineForInpainting`]. Each of these classes have a predefined mapping, linking a pipeline to their task-specific subclass.
66
66
67
-
When [`~AutoPipeline.from_pretrained`] is called, it extracts the class name from the `model_index.json`fileand selects the appropriate pipeline subclass for the task based on the mapping.
67
+
When [`~AutoPipelineForText2Image.from_pretrained`] is called, it extracts the class name from the `model_index.json`fileand selects the appropriate pipeline subclass for the task based on the mapping.
0 commit comments