horseee / DeepCache

[CVPR 2024] DeepCache: Accelerating Diffusion Models for Free
https://horseee.github.io/Diffusion_DeepCache/
Apache License 2.0
687 stars 32 forks source link

Issue: Colab example doesn't work #30

Open Barry0121 opened 3 months ago

Barry0121 commented 3 months ago

Hi,

I tried to run the provided Colab notebook, and I encountered the following error when running Stable Diffusion + DeepCache:

ImportError                               Traceback (most recent call last)
[<ipython-input-8-d506b2de9795>](https://localhost:8080/#) in <cell line: 2>()
      1 get_ipython().system('pip install deepcache')
----> 2 from DeepCache import StableDiffusionPipeline as DeepCacheStableDiffusionPipeline

ImportError: cannot import name 'StableDiffusionPipeline' from 'DeepCache' (/content/DeepCache/DeepCache/__init__.py)

I ran !pip install deepcache and restarted the instance, but this didn't fix it. I haven't changed any part of the code. Any fix suggestion for this?

horseee commented 3 months ago

Hi, @Barry0121

The code in Colab is outdated and I have updated it. Feel free to give it a try and see the results. Thanks for the gentle reminder! 😊