Skip to content

[Custom pipeline] Easier loading of local pipelines #1327

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

Merged
merged 3 commits into from
Nov 17, 2022

Conversation

patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Nov 17, 2022

Fixes: #1141

Now it's much easier to load custom pipelines locally.

from diffusers import DiffusionPipeline

pipeline = DiffusionPipeline("CompVis/stable-diffusion-v1-4", custom_pipeline="/path/to/custom_pipe_in_wip.py")

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 17, 2022

The documentation is not available anymore as the PR was closed or merged.

@patrickvonplaten patrickvonplaten merged commit 632dace into main Nov 17, 2022
@patrickvonplaten patrickvonplaten deleted the improve_custom_pipeline_testing branch November 17, 2022 15:00
@chris-aeviator
Copy link

this should be documented!

@chris-aeviator
Copy link

chris-aeviator commented Jan 9, 2023

this errors with No such file or directory: '/my-folder/examples/community/..configuration_utils.py' when doing

pipe = DiffusionPipeline.from_pretrained(
  model_path,
  custom_pipeline="/my-folder/examples/community/my_pipeline.py

if I run it a second time it errors with

FileNotFoundError: [Errno 2] No such file or directory: '/my-folder/examples/community/..models.py' 

third run

FileNotFoundError: [Errno 2] No such file or directory: '/home/korny/Development/TOFU/hf_diffusers/examples/community/..schedulers.py'

@patrickvonplaten
Copy link
Contributor Author

@chris-aeviator,

Could you please open a new issue with a reproducible code snippet?

yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* [Custom pipeline] Easier loading of local pipelines

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

Successfully merging this pull request may close these issues.

Add support for local files in custom pipelines
3 participants