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') | |