Fenfang Tao, Guo-Sen Xie1, Fang Zhao, Xiangbo Shu.
Install the required packages:
pip install -r requirements.txt
You can download MVTec-AD dataset from [this link] and VisA from [this link]. After downloading, please modify the corresponding data loading path.
You can download the pre-trained ImageBind model using [this link]. After downloading, put the downloaded file (imagebind_huge.pth) in [./pretrained_ckpt/imagebind_ckpt/] directory.
You can download the the pre-trained weights using [this link] and [this link]. After downloading, place them into [./code/ckpt/train_mvtec] and [./data//ckpt/train_visa] directory respectively.
- Quick start (use the pre-trained weights)
cd /KAG-prompt/code
python test_visa.py
pyhton test_mvtec.py
bash ./scripts/train_mvtec.sh
bash ./scripts/train_visa.sh