Skip to content

Default Width, Height in ControlNet does not initialized #6435

@rootonchair

Description

@rootonchair

Describe the bug

I notice that width, height variables are not initialized as self.unet.config.sample_size * self.vae_scale_factor said in the doc
https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/controlnet/pipeline_controlnet.py#L1024

I'm not sure if this is intentional, else it would cause division error between two None varables when #6360 is merged

Reproduction

None

Logs

No response

System Info

  • diffusers version: 0.25.0.dev0
  • Platform: Linux-4.18.0-408.el8.x86_64-x86_64-with-glibc2.28
  • Python version: 3.9.18
  • PyTorch version (GPU?): 2.1.2+cu121 (True)
  • Huggingface_hub version: 0.20.1
  • Transformers version: 4.36.2
  • Accelerate version: 0.25.0
  • xFormers version: not installed

Who can help?

@yiyixuxu

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstaleIssues that haven't received updates

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions