Skip to content

ImportError: cannot import name 'cached_download' from 'huggingface_hub' #24

@TCLW123

Description

@TCLW123

Traceback (most recent call last):
File "/home/xinyihu/distrifuser-main/scripts/sdxl_example.py", line 3, in
from distrifuser.pipelines import DistriSDXLPipeline
File "/home/distrifuser-main/distrifuser/pipelines.py", line 2, in
from diffusers import StableDiffusionPipeline, StableDiffusionXLPipeline, UNet2DConditionModel
File "/home/anaconda3/envs/distifusion/lib/python3.10/site-packages/diffusers/init.py", line 5, in
from .utils import (
File "/home/anaconda3/envs/distifusion/lib/python3.10/site-packages/diffusers/utils/init.py", line 38, in
from .dynamic_modules_utils import get_class_from_dynamic_module
File "/home/anaconda3/envs/distifusion/lib/python3.10/site-packages/diffusers/utils/dynamic_modules_utils.py", line 28, in
from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/home/anaconda3/envs/distifusion/lib/python3.10/site-packages/huggingface_hub/init.py)

The above error occurred while I was running example.
My configuration is NVIDIA 4090+Python 3.10+Pytorch2.2.0+cu121 CUDA Version: 12.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions