Expected weight

Expected weight to be of same shape as normalized_shape, but got weight of shape [1024] and normalized_shape = [768]

help

Could you post a minimal and executable code snippet to reproduce the issue, please?

pipe = StableDiffusionImg2ImgPipeline.from_pretrained(
r"C:\Users\FLEXCG.cache\huggingface\hub\models–runwayml–stable-diffusion-v1-5\snapshots\c9ab35ff5f2c362e9e22fbafe278077e196057f0",
torch_dtype=torch.float32, safety_checker=None).to(
device
)

images = pipe(prompt=prompt, image=init_image, strength=strength, guidance_scale=guidance_scale,
num_inference_steps=num_inference_steps, negative_prompt=negative_prompt,
num_images_per_prompt=num_images_per_prompt, generator=generator).images