Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error in train dreambooth.py #10311

Open
priyadharsan1403 opened this issue Dec 20, 2024 · 1 comment
Open

import error in train dreambooth.py #10311

priyadharsan1403 opened this issue Dec 20, 2024 · 1 comment
Labels

Comments

@priyadharsan1403
Copy link

Traceback (most recent call last):
File "/content/train_dreambooth.py", line 21, in
from diffusers import AutoencoderKL, DDIMScheduler, DDPMScheduler, StableDiffusionPipeline, UNet2DConditionModel
File "/usr/local/lib/python3.10/dist-packages/diffusers/init.py", line 3, in
from .configuration_utils import ConfigMixin
File "/usr/local/lib/python3.10/dist-packages/diffusers/configuration_utils.py", line 34, in
from .utils import (
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/init.py", line 38, in
from .dynamic_modules_utils import get_class_from_dynamic_module
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/dynamic_modules_utils.py", line 29, in
from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/usr/local/lib/python3.10/dist-packages/huggingface_hub/init.py)

@hlky
Copy link
Collaborator

hlky commented Dec 20, 2024

Looks like you're on an older version of Diffusers, can you install from main?

@hlky hlky added the training label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants