Open zhaosheng-thu opened 6 months ago
It seems to be a network error. You can try if your internet connection or proxy can access https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/vocab.json. If yes, maybe your server on which you launch the code is blocked from internet, in that case you need to run your code with access to internet to download some files (then you can use the code offline). If no then check how to allow your internet connection to access the link above.
It seems to be a network error. You can try if your internet connection or proxy can access https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/vocab.json. If yes, maybe your server on which you launch the code is blocked from internet, in that case you need to run your code with access to internet to download some files (then you can use the code offline). If no then check how to allow your internet connection to access the link above.
Thank you so much. In fact i can access https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/vocab.json, maybe i must try to download and use it offline.
It seems to be a network error. You can try if your internet connection or proxy can access https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/vocab.json. If yes, maybe your server on which you launch the code is blocked from internet, in that case you need to run your code with access to internet to download some files (then you can use the code offline). If no then check how to allow your internet connection to access the link above.
Thank you. I want to know how to use the code offline. Could you offer me the code?
There is no special code, you just need to run the model creation online to download the models, and then you should be able to run the code offline.
When I finish configuring the virtual environment and run the command:
python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms
, I encounter the following error:Global seed set to 42 Loading model from models/ldm/stable-diffusion-v1/model.ckpt Global Step: 470000 LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. making attention of type 'vanilla' with 512 in_channels Working with z of shape (1, 4, 32, 32) = 4096 dimensions. making attention of type 'vanilla' with 512 in_channels Traceback (most recent call last): File "E:\Conda\envs\ldm\lib\site-packages\urllib3\connectionpool.py", ... (Several lines ...) 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.', OSError(0, 'Error')))
What could be the issue? Thank u!