1、运行txt2img.py出现huggingface下载safety-cheaker问题
问题:OSError: We couldn't connect to 'https://huggingface.co' to load this model, couldn't find it in the cached files and it looks like CompVis/stable-diffusion-safety-check
er is not the path to a directory containing a preprocessor_config.json file.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.原因:网络不好,无法进入huggingface下载模型
解决:下载后离线,步骤如下
1.进入网址:https://huggingface.co/docs/transformers/installation#offline-mode