This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To run the code | |
| # export PYTHONPATH=INTERVL_CODE_PATH/internvlchat/:$PYTHONPATH | |
| # python demo_internvl_grounding.py --auto --image_path IMAGE_PATH --exp EXPRESSION | |
| import torch | |
| from transformers import AutoModel, AutoTokenizer | |
| import torchvision.transforms as T | |
| from PIL import Image | |
| from torchvision.transforms.functional import InterpolationMode | |
| import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " Blog_post: | |
| " http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " => Vundle | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
| set nocompatible |