Closed entangledloops closed 1 year ago
Looking at your error, it seems that you are using a diffusers
StableDiffusionPipeline
instead of the StableDiffusionWalkPipeline
from this package to call that generate_images
fn. That pipeline would indeed not have the tiled
attribute, because it only exists in my pipeline here.
As for realesrgan
install (which is separate issue from this one), it was originally optional, but I got lazy along the way and now it will try to import it either way. I'll just add it to requirements.txt
then.
Yup, you're right. It was some Jupyter state mixup. I just reran the same code:
from stable_diffusion_videos import StableDiffusionWalkPipeline, Interface
import torch
pipe = StableDiffusionWalkPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5",
torch_dtype=torch.float16,
revision="fp16"
)
device = "cuda"
pipe.safety_checker = lambda images, clip_input: (images, False)
pipe = pipe.to(device)
interface = Interface(pipe)
interface.launch()
And it works this time. Closing the issue.
The
requirements.txt
seem to be missing an install for packagerealesrgan
. After installing that, I hit the error:You should probably pin the versions in
requirements.txt
.