Open bijingshichengzi opened 7 months ago
When I downloaded all the weight files of stable-diffusion-xl-base-1.0 and prepared to run stable_diffusion_xl_test.py, I got the error OSError: ./stable-diffusion-xl-base-1.0 does not appear to have a file named config. json. Checkout 'https://huggingface.co/./stable-diffusion-xl-base-1.0/None' for available files. After querying many related articles, I solved the problem by lowering the version of transformers, but it will ImportError: cannot import name 'CLIPTextModelWithProjection' from 'transformers' (/root/miniconda3/envs/stylefree/lib/python3.8/site-packages/transformers/init.py) occurs. This problem is caused by the version of transformers being too low. of. After trying many versions of transformers, I have not found a version that can solve both problems at the same time. Hope to get a reply, thank you.
Have you solved it now?
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download --resume-download stabilityai/stable-diffusion-xl-base-1.0 --local-dir ./stable-diffusion-xl-base-1.0
download the whole directory will fix it.
When I downloaded all the weight files of stable-diffusion-xl-base-1.0 and prepared to run stable_diffusion_xl_test.py, I got the error OSError: ./stable-diffusion-xl-base-1.0 does not appear to have a file named config. json. Checkout 'https://huggingface.co/./stable-diffusion-xl-base-1.0/None' for available files. After querying many related articles, I solved the problem by lowering the version of transformers, but it will ImportError: cannot import name 'CLIPTextModelWithProjection' from 'transformers' (/root/miniconda3/envs/stylefree/lib/python3.8/site-packages/transformers/init.py) occurs. This problem is caused by the version of transformers being too low. of. After trying many versions of transformers, I have not found a version that can solve both problems at the same time. Hope to get a reply, thank you.