I'm working on modifying the attention, but when I set (processor=AttnProcessor()), it goes wrong combined with ip_adaptor:
hidden_states.shape if encoder_hidden_states is None else encoder_hidden_states.shape
AttributeError: 'tuple' object has no attribute 'shape'
Reproduction
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel
import torch
from diffusers.utils import load_image
if name == "main":
controlnet_model_path = "lllyasviel/control_v11f1p_sd15_depth"
controlnet = ControlNetModel.from_pretrained(controlnet_model_path, torch_dtype=torch.float16)
Describe the bug
AttributeError: 'tuple' object has no attribute 'shape'
Reproduction
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel import torch from diffusers.utils import load_image
if name == "main": controlnet_model_path = "lllyasviel/control_v11f1p_sd15_depth" controlnet = ControlNetModel.from_pretrained(controlnet_model_path, torch_dtype=torch.float16)
Logs
No response
System Info
torch:2.4.1 diffusers 0.26.0
Who can help?
No response