VDebugger-generalist-for-VQA / download_files_from_hub.py
Xueqing Wu
nltk
8c8321a
raw
history blame contribute delete
No virus
435 Bytes
from huggingface_hub import hf_hub_download
hf_hub_download(repo_id="GLIPModel/GLIP", filename="glip_large_model.pth",
local_dir="./pretrained_models/GLIP/checkpoints")
hf_hub_download(repo_id="VDebugger/xvlm_retrieval_mscoco", filename="retrieval_mscoco_checkpoint_9.pth",
local_dir="./pretrained_models/xvlm/")
import nltk
nltk.download('punkt_tab')
nltk.download('averaged_perceptron_tagger_eng')