ShivamShrirao / diffusers

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

Problem #233

Open hzvolkan opened 1 year ago

hzvolkan commented 1 year ago

Describe the bug

Fetching 19 files: 100%|██████████| 19/19 [00:00<?, ?it/s] text_config_dict is provided which will be used to initialize CLIPTextConfig. The value text_config["id2label"] will be overriden. The config attributes {'clip_sample': False} were passed to PNDMScheduler, but are not expected and will be ignored. Please verify your scheduler_config.json configuration file. Traceback (most recent call last): File "ain.py", line 3, in pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5") \diffusers\pipeline_utils.py", line 455, in from_pretrained load_method = getattr(class_obj, load_method_name) TypeError: getattr(): attribute name must be string

Reproduction

Problem

Logs

Fetching 19 files: 100%|██████████| 19/19 [00:00<?, ?it/s]
`text_config_dict` is provided which will be used to initialize `CLIPTextConfig`. The value `text_config["id2label"]` will be overriden.
The config attributes {'clip_sample': False} were passed to PNDMScheduler, but are not expected and will be ignored. Please verify your scheduler_config.json configuration file.
Traceback (most recent call last):
  File "\main.py", line 3, in <module>
    pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
  File "oj\des\lib\site-packages\diffusers\pipeline_utils.py", line 455, in from_pretrained
    load_method = getattr(class_obj, load_method_name)
TypeError: getattr(): attribute name must be string

System Info

Professional