Skip to content

getattr() attribute name must be a string #14

@Lalats12

Description

@Lalats12

Describe the bug

When executing the file, save_onnx.py, I encountered this error

Traceback (most recent call last):
  File "C:\Users\jpyea\Desktop\For fun\Stable Diffuse\diffusers\examples\inference\save_onnx.py", line 16, in <module>
    pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", scheduler=lms, use_auth_token=True)
  File "C:\Users\jpyea\Desktop\For fun\Stable Diffuse\diffusers\src\diffusers\pipeline_utils.py", line 240, in from_pretrained
    load_method = getattr(class_obj, load_method_name)
TypeError: getattr(): attribute name must be string

Reproduction

Logs

No response

System Info

Python 3.10.6
Diffuser version: 1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions