Like in Title this AttributeError pops up whenever I ran this Huggingface code
from diffusers import StableDiffusionPipeline
import sys
import torch
import cv2
import numpy as np
sys.path.append(r"/Users/My/Path/ToProj")
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
pipe = pipe.to("cpu")
prompt = "A flying Pusheen in the early morning with matching flying capes. The Pusheen keeps flying. The Pusheen keeps flying with some Halloween designs."
negative_prompt = "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards"
output = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
height=480,
width=832,
num_frames=81,
guidance_scale=5.0
).frames[0]
export_to_video(output, "outputPusheen.mp4", fps=15)
Do I have to define frames somewhere or does this error refer to another cause?