由于内网无法访问host=‘huggingface.co’,本地部署的stable diffusion会进行长期的连接报错
方案1:使用代理(需要梯子)
方案2:本地下载
进入huggingface.co下载自己想要的模型
在pycharm启动代码里添加
import os
os.environ['CURL_CA_BUNDLE'] = ''
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'
由于内网无法访问host=‘huggingface.co’,本地部署的stable diffusion会进行长期的连接报错
方案1:使用代理(需要梯子)
方案2:本地下载
进入huggingface.co下载自己想要的模型
在pycharm启动代码里添加
import os
os.environ['CURL_CA_BUNDLE'] = ''
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'