deforum-art / deforum

Diffusion Animation Toolkit
MIT License
33 stars 7 forks source link

I NEED HELP URGENTLY!!! Error when running second cell of the pre-release notebook #13

Open fdefake opened 1 year ago

fdefake commented 1 year ago

I am using Deforum for a school project that is due tomorrow. When running the second cell of the pre-release notebook found on this repository I get the error: The cache for model files in Transformers v4.22.0 has been updated. Migrating your old cache. This is a one-time only operation. You can interrupt this and resume the migration later on by calling transformers.utils.move_cache(). 0/0 [00:00<?, ?it/s]

ImportError Traceback (most recent call last) in <cell line: 6>() 4 from types import SimpleNamespace 5 from IPython.display import display ----> 6 from deforum import Deforum, DeforumConfig, GenerationArgs 7 from diffusers.utils import load_image 8 from deforum.utils.image_utils import ImageHandler

7 frames /usr/local/lib/python3.10/dist-packages/deforum/backend/mixins/stable_diffusion/stable_base_mixin.py in 15 ) 16 from diffusers.schedulers import KarrasDiffusionSchedulers ---> 17 from diffusers.utils import deprecate, randn_tensor 18 from loguru import logger 19 from packaging import version

ImportError: cannot import name 'randn_tensor' from 'diffusers.utils' (/usr/local/lib/python3.10/dist-packages/diffusers/utils/init.py)


NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the "Open Examples" button below.

I really need help guys, or I might fail this project. PLEASE!!!!!!!!!!!

ShaleenBhartiya commented 11 months ago

Just run this before importing - pip install diffusers==0.20.2

It will be fixed! 😊