Closed zelenooki87 closed 1 month ago
Hello, I just checked the test code, and it runs fine on my end. Based on your bug report, it seems to be an issue with the Hugging Face connection.
I am sorry. you are right. This was because I reinstalled OS, I thouth commit before working okay, but same case. problem was because latest huggingface_hub installed by default in new environment pip uninstall huggingface_hub pip install huggingface-hub==0.24.6 solved issue. closing Isue
python test_osediff.py -i preset/datasets/test_dataset/input -o preset/datasets/test_dataset/output --osediff_path preset/models/osediff.pkl --pretrained_model_name_or_path preset/models/stable-diffusion-2-1-base --ram_ft_path preset/models/DAPE.pth --ram_path preset/models/ram_swin_large_14m.pth Traceback (most recent call last): File "C:\Users\admin\OSEDiff\test_osediff.py", line 12, in
from osediff import OSEDiff_test
File "C:\Users\admin\OSEDiff\osediff.py", line 10, in
from diffusers import DDPMScheduler
File "C:\Users\admin\anaconda3\envs\osediff\lib\site-packages\diffusers__init.py", line 5, in
from .utils import (
File "C:\Users\admin\anaconda3\envs\osediff\lib\site-packages\diffusers\utils\ init.py", line 37, in
from .dynamic_modules_utils import get_class_from_dynamic_module
File "C:\Users\admin\anaconda3\envs\osediff\lib\site-packages\diffusers\utils\dynamic_modules_utils.py", line 28, in
from huggingface_hub import cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (C:\Users\admin\anaconda3\envs\osediff\lib\site-packages\huggingface_hub\ init__.py)