Quick Start
Install
- Clone this repository and navigate to IVM folder
git clone https://github.com/2toinf/IVM.git
cd IVM
- Install Package
conda create -n IVM python=3.10 -y
conda activate IVM
pip install -e .
Usage
from IVM import load, forward_batch
ckpt_path = "IVM-V1.0.bin" # your model path here
model = load(ckpt_path, low_gpu_memory = False) # Set `low_gpu_memory=True` if you don't have enough GPU Memory
image = Image.open("image/demo/robot.jpg") # your image path
instruction = "pick up the red cup and place it on the green pan"
result = forward_batch(model, [image], [instruction], threshold = 0.99)
from matplotlib import pyplot as plt
import numpy as np
plt.imshow((result[0]).astype(np.uint8))
Citation
@article{zheng2024instruction,
title={Instruction-Guided Visual Masking},
author={Zheng, Jinliang and Li, Jianxiong and Cheng, Sijie and Zheng, Yinan and Li, Jiaming and Liu, Jihao and Liu, Yu and Liu, Jingjing and Zhan, Xianyuan},
journal={arXiv preprint arXiv:2405.19783},
year={2024}
}
Model tree for 2toINF/IVM
Base model
llava-hf/llava-1.5-7b-hf