Skip to content

[Custom pipeline] Easier loading of local pipelines#1327

Merged
patrickvonplaten merged 3 commits into
mainfrom
improve_custom_pipeline_testing
Nov 17, 2022
Merged

[Custom pipeline] Easier loading of local pipelines#1327
patrickvonplaten merged 3 commits into
mainfrom
improve_custom_pipeline_testing

Conversation

@patrickvonplaten

@patrickvonplaten patrickvonplaten commented Nov 17, 2022

Copy link
Copy Markdown
Contributor

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

HuggingFaceDocBuilderDev commented Nov 17, 2022

Copy link
Copy Markdown

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
Copy Markdown

this should be documented!

@chris-aeviator

chris-aeviator commented Jan 9, 2023

Copy link
Copy Markdown

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
Copy Markdown
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