Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for local files in custom pipelines #1141

Closed
vvvm23 opened this issue Nov 4, 2022 · 3 comments · Fixed by #1327
Closed

Add support for local files in custom pipelines #1141

vvvm23 opened this issue Nov 4, 2022 · 3 comments · Fixed by #1327
Assignees
Labels

Comments

@vvvm23
Copy link
Contributor

vvvm23 commented Nov 4, 2022

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 🤗

@vvvm23 vvvm23 mentioned this issue Nov 4, 2022
6 tasks
@patrickvonplaten
Copy link
Contributor

Yes very much agree! I'll try to tackle it this week - in case anybody is interested I'm more than happy to help someone guide to merge a PR here.

@patrickvonplaten
Copy link
Contributor

This PR should fix it :-)
#1327

@vvvm23
Copy link
Contributor Author

vvvm23 commented Nov 17, 2022

Nice, I'll close once merged :)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants