LayoutLmv3 | ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.4.0/metrics/seqeval/seqeval.py
I tried to fine-tune layoutLMv3 Chinese model on XFUND, and I input those in terminal
python examples/run_xfund.py \
--data_dir data --language zh \
--do_train --do_eval \
--model_name_or_path microsoft/layoutlmv3-base-chinese \
--output_dir output
At first, it returns error AttributeError: module 'huggingface_hub' has no attribute 'hf_api'](https://github.com/huggingface/datasets/issues/4117#top)
Then I update some packages including datasets, huggingface_hub, transformers, etc.
it returns a new error now:
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.4.0/metrics/seqeval/seqeval.py (ConnectionError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.4.0/metrics/seqeval/seqeval.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbc58fd64d0>: Failed to establish a new connection: [Errno 111] Connection refused'))")))
How to fix it?
P.S the cuda version in my linux server is 10.2 and here are some parts of my packages list:
| Name | Version | Build Channel |
_libgcc_mutex 0.1 main defaults
cudatoolkit 10.2.89 h713d32c_10 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
datasets 2.3.2 pypi_0 pypi
deepspeed 0.5.7 pypi_0 pypi
detectron2 0.6+cu102 pypi_0 pypi
evaluate 0.1.2 pypi_0 pypi
huggingface-hub 0.8.1 pypi_0 pypi
layoutlmv3 0.1 dev_0
Have you solved the problem? It looks like a network issue. Can you reach the address on your server (e.g., through wget https://raw.githubusercontent.com/huggingface/datasets/2.4.0/metrics/seqeval/seqeval.py)?
I am closing this issue for now, since it is inactive.