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.