stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

ProxyError: HTTPSConnectionPool(host='huggingface.co', port=443)

Open ChifengWoo opened this issue 3 years ago • 3 comments

"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?

ChifengWoo avatar Sep 01 '22 09:09 ChifengWoo

I'm also looking for a solution

Moshekwa avatar Oct 19 '22 12:10 Moshekwa

me too...

sqzhang-jeremy avatar Dec 01 '22 05:12 sqzhang-jeremy

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)

kizoooh avatar Jan 17 '23 01:01 kizoooh