stable-diffusion
stable-diffusion copied to clipboard
ProxyError: HTTPSConnectionPool(host='huggingface.co', port=443)
"requests.exceptions.ProxyError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /openai/clip-vit-large-patch14/resolve/main/vocab.json (Caused by ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1106: The handshake operation timed out')))" How to solve this error?
I'm also looking for a solution
me too...
try to change ldm/modules/encoders/modules.py, change 141 and 142 line to:
self.tokenizer = CLIPTokenizer.from_pretrained(version, local_files_only=True) self.transformer = CLIPTextModel.from_pretrained(version, local_files_only=True)
And change 29, 30, 31lines in txt2img.py to:
safety_model_id = "CompVis/stable-diffusion-safety-checker" safety_feature_extractor = AutoFeatureExtractor.from_pretrained(safety_model_id, local_files_only=True) safety_checker = StableDiffusionSafetyChecker.from_pretrained(safety_model_id, local_files_only=True)