FreeStyleFreeLunch / FreeStyle

FreeStyle : Free Lunch for Text-guided Style Transfer using Diffusion Models
109 stars 7 forks source link

stable-diffusion-xl-base-1.0 does not appear to have a file named config.json. #4

Open bijingshichengzi opened 7 months ago

bijingshichengzi commented 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.

ucasligang commented 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?

longmans commented 5 months ago
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.