nateraw / stable-diffusion-videos

Create 🔥 videos with Stable Diffusion by exploring the latent space and morphing between text prompts
Apache License 2.0
4.36k stars 417 forks source link

cannot load stable_diffusion_videos.stable_diffusion_pipeline.StableDiffusionWalkPipeline #118

Closed alexandermolyneux closed 1 year ago

alexandermolyneux commented 1 year ago

The component <class 'transformers.models.clip.image_processing_clip.CLIPImageProcessor'> of <class 'stable_diffusion_videos.stable_diffusion_pipeline.StableDiffusionWalkPipeline'> cannot be loaded as it does not seem to have any of the loading methods defined in {'ModelMixin': ['save_pretrained', 'from_pretrained'], 'SchedulerMixin': ['save_config', 'from_config'], 'DiffusionPipeline': ['save_pretrained', 'from_pretrained'], 'OnnxRuntimeModel': ['save_pretrained', 'from_pretrained'], 'PreTrainedTokenizer': ['save_pretrained', 'from_pretrained'], 'PreTrainedTokenizerFast': ['save_pretrained', 'from_pretrained'], 'PreTrainedModel': ['save_pretrained', 'from_pretrained'], 'FeatureExtractionMixin': ['save_pretrained', 'from_pretrained']}.

nateraw commented 1 year ago

What version of diffusers are you using?

mbrotos commented 1 year ago

Running the following fixed my env:

pip install transformers==4.19.2 diffusers

nateraw commented 1 year ago

Yea one note is that this repo won't work with latest diffusers, so your fix @mbrotos above probably just came from the pinned transformers install.

nateraw commented 1 year ago

I'm guessing this will be fixed if I update diffusers version as well as its underlying transformers install. Will do that this week sometime!!

nateraw commented 1 year ago

This should be resolved now - let me know if you run into any other issues