Skip to content

[Community Pipelines] lpw_stable_diffusion.py incompatible with Diffusers v0.10.0 #1500

@WASasquatch

Description

@WASasquatch

Describe the bug

When trying to load Stable Diffusion v2.0 with Diffusers v0.10.0 you are greeted with error below

ValueError: Pipeline <class 'diffusers_modules.git.lpw_stable_diffusion.StableDiffusionLongPromptWeightingPipeline'> expected {'tokenizer', 'text_encoder', 'unet', 'vae', 'safety_checker', 'feature_extractor', 'scheduler'}, but only {'vae', 'tokenizer', 'safety_checker', 'text_encoder', 'scheduler', 'unet'} were passed.

Reproduction

  1. Load custom pipeline lpw_stable_diffusion in diffusers v0.10.0

Logs

D:\ProgramData\Anaconda3\lib\site-packages\diffusers\pipeline_utils.py in from_pretrained(cls, pretrained_model_name_or_path, **kwargs)
    672         elif len(missing_modules) > 0:
    673             passed_modules = set(list(init_kwargs.keys()) + list(passed_class_obj.keys())) - optional_kwargs
--> 674             raise ValueError(
    675                 f"Pipeline {pipeline_class} expected {expected_modules}, but only {passed_modules} were passed."
    676             )

ValueError: Pipeline <class 'diffusers_modules.git.lpw_stable_diffusion.StableDiffusionLongPromptWeightingPipeline'> expected {'tokenizer', 'text_encoder', 'unet', 'vae', 'safety_checker', 'feature_extractor', 'scheduler'}, but only {'vae', 'tokenizer', 'safety_checker', 'text_encoder', 'scheduler', 'unet'} were passed.

System Info

  • diffusers version: 0.10.0.dev0
  • Platform: Windows-10-10.0.22621-SP0
  • Python version: 3.9.13
  • PyTorch version (GPU?): 1.12.1 (True)
  • Huggingface_hub version: 0.11.0
  • Transformers version: 4.24.0
  • Using GPU in script?:
  • Using distributed or parallel set-up in script?:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions