hjbahng/visual_prompting

★ 290⑂ 33

Exploring Visual Prompts for Adapting Large-Scale Models

About hjbahng/visual_prompting

hjbahng/visual_prompting is an open-source project on GitHub, mainly written in Python. Exploring Visual Prompts for Adapting Large-Scale Models It currently holds 290 stars and 33 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Prompt Engineering board.

GitHub Repository Details

Repository hjbahng/visual_prompting · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Visual Prompting

This is the official implementation of the paper Exploring Visual Prompts for Adapting Large-Scale Models.

Installation

Clone this repo:
git clone https://github.com/hjbahng/visual_prompting.git
cd visual_prompting

This code requires python 3+. Install dependencies by:

pip install -r requirements.txt

Prepare the pre-trained models:

bash models/download_models.sh

Train/Test for CLIP

python main_clip.py --dataset cifar100 --root [path_to_cifar100] 
python main_clip.py --evaluate --resume /path/to/checkpoints/model_best.pth.tar --dataset cifar100 --root [path_to_cifar100]

Train/Test for Vision Models

python main_vision.py --model bit_m_rn50 --dataset cifar100 --root [path_to_cifar100]
python main_vision.py --evaluate --resume /path/to/checkpoints/model_best.pth.tar --model bit_m_rn50 --dataset cifar100 --root [path_to_cifar100]

Citation

If you use this code for your research, please cite our paper.
@article{bahng2022visual,
         title={Exploring Visual Prompts for Adapting Large-Scale Models}, 
         author={Hyojin Bahng and Ali Jahanian and Swami Sankaranarayanan and Phillip Isola},
         journal={arXiv preprint arXiv:2203.17274},
         year={2022}
}

GitHub Stars & Activity

290Stars
33Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars290
Forks33
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

microsoft / promptflow

Python★ 11,244⑂ 1,123
2

promptslab / Promptify

Python★ 4,635⑂ 364
3
4

hegelai / prompttools

Python★ 3,055⑂ 256
5

Eladlev / AutoPrompt

Python★ 3,019⑂ 264
6

microsoftarchive / promptbench

Python★ 2,821⑂ 222
7

yaojingang / yao-open-prompts

Python★ 2,817⑂ 461
8

YiVal / YiVal

Python★ 2,134⑂ 328

More AI Rankings