Open philgzl opened 1 year ago
Can you give a description of your environment? Python version, OS and version, etc.
Python: 3.10.7 OS: Scientific Linux 7.9 (Nitrogen)
It seems like what is causing the issue is setting vae=AutoencoderKL.from_pretrained(f"stabilityai/sd-vae-ft-ema")
when initializing the StableDiffusionWalkPipeline
here. This is not done in the code snippet in README.md
, and commenting this line out fixes the issue.
Maybe the script should be updated to also use SD 2.1. Maybe I open a PR.
alternatively you could resolve using this:
revision = "fp16"
model_path = "runwayml/stable-diffusion-v1-5"
# add this into your StableDiffusionWalkPipeline():
vae=AutoencoderKL.from_pretrained(
model_path,
subfolder="vae",
revision=revision,
torch_dtype=torch_dtype
),
When trying to generate a music video using
examples/make_music_video.py
locally, I get the following error:However when using the snippet in
README.md
everything works well.