GroundingDINO 实战问题

1. MaxRetryError

Error:

'(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-uncased/resolve/main/tokenizer_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f2a1c08aeb0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: b9b328c8-dbcb-42f0-921b-a50d27911ece)')' thrown while requesting HEAD https://huggingface.co/bert-base-uncased/resolve/main/tokenizer_config.json

Solver:

# tokenizer = AutoTokenizer.from_pretrained(text_encoder_type)
tokenizer = AutoTokenizer.from_pretrained(text_encoder_type, local_files_only=True)

2. SSLError

SSLError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /dslim/bert-base-NER/resolve/main/tokenizer_config.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)')))

Solver:

1.

pip install requests==2.27.1
# or
conda install requests==2.27.1

2.

import os
os.environ['CURL_CA_BUNDLE'] = ''
Table of Contents