Skip to content

Add support for local files in custom pipelines #1141

Closed
@vvvm23

Description

@vvvm23

Is your feature request related to a problem? Please describe.
Currently there is no way to pass a local pipeline file to DiffusionPipeline as a custom pipeline. This makes the development process when adding custom pipelines quite difficult, as it requires pushing to main first or clearing the cache (see this comment)

Describe the solution you'd like
When a local path is specified, a custom pipeline should be loaded using the local file.

Describe alternatives you've considered
There are workarounds as specified in the above link. Personally, I also just added a __main__ block to the custom pipeline file and executed it directly - but this is less than ideal.

Thanks 🤗

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions