LAVIS icon indicating copy to clipboard operation
LAVIS copied to clipboard

How to manually download and load it?

Open xixihawokao opened this issue 1 year ago • 2 comments

It's a great job indeed. I encountered a downloading issue and I have to run the program on a remote server that cannot connect to the network. When I tried to use this code, I encountered the following issue: `>>> model, vis_processors, txt_processors = load_model_and_preprocess(name="blip_feature_extractor", model_type="base", is_eval=True, device=device) Downloading (…)solve/main/vocab.txt: 0%| | 0.00/232k [00:00<?, ?B/sDownloading (…)solve/main/vocab.txt: 100%|████████████████████████████████████████████| 232k/232k [00:01<00:00, 197kB/sDownloading (…)solve/main/vocab.txt: 100%|████████████████████████████████████████████| 232k/232k [00:01<00:00, 197kB/s] Downloading (…)okenizer_config.json: 0%| | 0.00/28.0 [00:00<?, ?B/sDownloading (…)okenizer_config.json: 100%|███████████████████████████████████████████| 28.0/28.0 [00:00<00:00, 1.47kB/s] Downloading (…)lve/main/config.json: 0%| | 0.00/570 [00:00<?, ?B/sDownloading (…)lve/main/config.json: 100%|██████████████████████████████████████████████| 570/570 [00:00<00:00, 118kB/s] TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred: urllib.error.URLError: <urlopen error [Errno 110] Connection timed out> ` Can you tell me how to manually download and load it? Thank you very much.

xixihawokao avatar Feb 25 '23 13:02 xixihawokao