diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

How to let diffusers use local code for pipelineinstead of download it online everytime We use it?

Open Kevin-shihello-world opened this issue 1 year ago • 6 comments

I tried to use the instaflowpipeline from example/community to.run my test However, even after i git cloned the repository to my environment it still Keep trying to Download the latest object of the instaflow pipeline code Unfortunately in my area is hard for the environment to download it directly from rawgithub. I tried to change the downloaded code to let it just use these code already in my environment But find it hard to change the path to url. I would be appreciated if someone could find an proper answer . Thank you for your time and happy lunar new year!

Kevin-shihello-world avatar Feb 02 '24 02:02 Kevin-shihello-world

@Kevin-shihello-world Can you share a code example for how you are trying to load the pipeline?

DN6 avatar Feb 05 '24 12:02 DN6

a recent refactor broke some projects by removing config_files from from_single_file: https://github.com/huggingface/diffusers/commit/fee93c81eb7c5e9fe1618f858f1e369567170edc#diff-e4c59f1e6ef65de50f554faa85ba27174c9fa11641082cb2e15f88b100e8b9afL150

last working commit is here: https://github.com/huggingface/diffusers/blob/5308cce994ffb1b2c169d62a8f49d445442dff47/src/diffusers/loaders/single_file.py#L150

cool-bigdogs-tshirt avatar Feb 05 '24 22:02 cool-bigdogs-tshirt

@cool-bigdogs-tshirt I don't think it's related to this issue. But if you are experiencing an issue with single file would you mind opening a new issue with a reproducible code snippet please?

DN6 avatar Feb 06 '24 16:02 DN6

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Mar 03 '24 15:03 github-actions[bot]

a recent refactor broke some projects by removing config_files from from_single_file: fee93c8#diff-e4c59f1e6ef65de50f554faa85ba27174c9fa11641082cb2e15f88b100e8b9afL150

last working commit is here:

https://github.com/huggingface/diffusers/blob/5308cce994ffb1b2c169d62a8f49d445442dff47/src/diffusers/loaders/single_file.py#L150

I also encountered this problem. The current from_single_file API has removed the config_files parameter. You can use the original_config_file parameter to pass the path of the yaml configuration file corresponding to different models.

Sanster avatar Apr 12 '24 03:04 Sanster

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar May 06 '24 15:05 github-actions[bot]