LLLogen / VSDcode

1 stars 0 forks source link

Connection error #1

Open lizixiaoboluo opened 3 months ago

lizixiaoboluo commented 3 months ago

Hi, I'm having connectivity issues: ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on. How to solve it ?

LLLogen commented 3 months ago

Hi, I'm having connectivity issues: ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on. How to solve it ?

Hi, could you provide the detailed error logs? I guess it's a network problem. You should make sure that your server could connect to the https://huggingface.co/, or you may manually download the related model weights.

lizixiaoboluo commented 3 months ago

Hi, I'm having connectivity issues: ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on. How to solve it ?

Hi, could you provide the detailed error logs? I guess it's a network problem. You should make sure that your server could connect to the https://huggingface.co/, or you may manually download the related model weights.

Traceback (most recent call last): File "VLModel/src/vsd.py", line 471, in main_worker(args.local_rank, args) File "VLModel/src/vsd.py", line 410, in main_worker topk=args.train_topk, File "/home/VSDcode/VLModel/src/caption_data.py", line 694, in get_vsd_loader mode=mode) File "/home/VSDcode/VLModel/src/caption_data.py", line 380, in init args.backbone,) File "/home/.conda/envs/vsd/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 1745, in from_pretrained use_auth_token=use_auth_token, File "/home/.conda/envs/vsd/lib/python3.7/site-packages/transformers/file_utils.py", line 1056, in cached_path local_files_only=local_files_only, File "/home/.conda/envs/vsd/lib/python3.7/site-packages/transformers/file_utils.py", line 1235, in get_from_cache "Connection error, and we cannot find the requested files in the cached path." ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on. It's a network problem. I use mirror to download, but I failed.

LLLogen commented 3 months ago

Hi, I'm having connectivity issues: ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on. How to solve it ?

Hi, could you provide the detailed error logs? I guess it's a network problem. You should make sure that your server could connect to the https://huggingface.co/, or you may manually download the related model weights.

Traceback (most recent call last): File "VLModel/src/vsd.py", line 471, in main_worker(args.local_rank, args) File "VLModel/src/vsd.py", line 410, in main_worker topk=args.train_topk, File "/home/VSDcode/VLModel/src/caption_data.py", line 694, in get_vsd_loader mode=mode) File "/home/VSDcode/VLModel/src/caption_data.py", line 380, in init args.backbone,) File "/home/.conda/envs/vsd/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 1745, in from_pretrained use_auth_token=use_auth_token, File "/home/.conda/envs/vsd/lib/python3.7/site-packages/transformers/file_utils.py", line 1056, in cached_path local_files_only=local_files_only, File "/home/.conda/envs/vsd/lib/python3.7/site-packages/transformers/file_utils.py", line 1235, in get_from_cache "Connection error, and we cannot find the requested files in the cached path." ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on. It's a network problem. I use mirror to download, but I failed.

Set the "--backbone" to "google/flan-t5-base". If the mirror doesn't work, you can manually download the model files from Huggingface or the mirror site to a path and change the "--backbone" to that path.

lizixiaoboluo commented 3 months ago

Hi, Traceback (most recent call last): File "VLModel/src/vsd.py", line 471, in main_worker(args.local_rank, args) File "VLModel/src/vsd.py", line 410, in main_worker topk=args.train_topk, File "/home/VSDcode/VLModel/src/caption_data.py", line 694, in get_vsd_loader mode=mode) File "/home/VSDcode/VLModel/src/caption_data.py", line 418, in init for d in datum['captions']: KeyError: 'captions' Where are the captions in train splits? I don‘t find it.

LLLogen commented 3 months ago

Hi, Traceback (most recent call last): File "VLModel/src/vsd.py", line 471, in main_worker(args.local_rank, args) File "VLModel/src/vsd.py", line 410, in main_worker topk=args.train_topk, File "/home/VSDcode/VLModel/src/caption_data.py", line 694, in get_vsd_loader mode=mode) File "/home/VSDcode/VLModel/src/caption_data.py", line 418, in init for d in datum['captions']: KeyError: 'captions' Where are the captions in train splits? I don‘t find it.

That's a typo, "captions" should be "description". Have updated now.