ControlNet-for-Diffusers icon indicating copy to clipboard operation
ControlNet-for-Diffusers copied to clipboard

Why don't you import from `diffusers` instead of using relative imports?

Open remorses opened this issue 2 years ago • 1 comments

if you replace imports like from ...models import AutoencoderKL, UNet2DConditionModel with from diffusers.models import AutoencoderKL, UNet2DConditionModel you can copy paste the pipeline files in your code and simply run it without patching diffusers

Should i open a PR to do this?

Also, why not add these pipelines to the diffusers package with a PR instead of keeping them in a separate repository?

remorses avatar Apr 14 '23 12:04 remorses

Because this repo is implemented before the diffusers officially supports. I will update this repo ASAP to be compatible with the lastest version of diffusers. @remorses

haofanwang avatar Apr 16 '23 04:04 haofanwang