Skip to content

AttributeError: 'StableDiffusionControlNetPipeline' object has no attribute 'enable_vae_tiling' #3202

@alejobrainz

Description

@alejobrainz

Describe the bug

I am trying to enable vae tiling an a Control Net Pipeline but get this issue. This option seems to work on StableDiffusionPipeline but does not on ControlNetPipeline. Please advice.

Reproduction

pipeline = StableDiffusionControlNetPipeline.from_pretrained(models[model_index]["path"], torch_dtype=torch.float16,)
cached_pipeline.enable_vae_tiling()
cached_pipeline.enable_xformers_memory_efficient_attention()

Logs

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.10/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ubuntu/.local/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ubuntu/.local/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/ubuntu/AI-Spaces-Server/app.py", line 65, in panorama
    info = run_panorama(prompt, space, weight, style, model, num_images, width, seed, cfg_scale, sampling_steps, image_quality, image, url)
  File "/home/ubuntu/AI-Spaces-Server/common.py", line 46, in run_panorama
    images, info, seeds, error = inference.render(**args)
  File "/home/ubuntu/AI-Spaces-Server/inference.py", line 31, in render
    pipe = load_model(
  File "/home/ubuntu/AI-Spaces-Server/models.py", line 94, in load_model
    cached_pipeline.enable_vae_tiling()
  File "/home/ubuntu/.local/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 137, in __getattr__
    raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'StableDiffusionControlNetPipeline' object has no attribute 'enable_vae_tiling'

System Info

diffusers 0.15.0
ubuntu linux

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