huggingface / diffusers

🤗 Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch and FLAX.
https://huggingface.co/docs/diffusers
Apache License 2.0
26.37k stars 5.43k forks source link

(feature) diffusers.StableDiffusionAdapterPipeline could inherit FromSingleFileMixin #9123

Open Teriks opened 3 months ago

Teriks commented 3 months ago

This is probably not a high traffic pipeline, but I have noticed it is probably possible for this pipeline to inherit FromSingleFileMixin harmlessly, it currently does not.

I am using this snippet to support single file loads with this pipeline and it seems to work fine when it inherits this mixin.


pipe_class = type(
    'StableDiffusionAdapterPipeline',  
    (diffusers.loaders.FromSingleFileMixin, diffusers.StableDiffusionAdapterPipeline), {})

pipe_class.from_single_file(...)
a-r-r-o-w commented 3 months ago

cc @DN6

github-actions[bot] commented 2 months ago

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] commented 4 days ago

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.