GithubHelp home page GithubHelp logo

ucsc-vlaa / evp Goto Github PK

View Code? Open in Web Editor NEW
36.0 1.0 3.0 556 KB

[TMLR'24] This repository includes the official implementation our paper "Unleashing the Power of Visual Prompting At the Pixel Level"

License: MIT License

Python 100.00%

evp's Introduction

Unleashing the Power of Visual Prompting At the Pixel Level

This is the official implementation of the paper Unleashing the Power of Visual Prompting At the Pixel Level.

Installation

Clone this repo:

git clone https://github.com/UCSC-VLAA/EVP
cd EVP

Our code is built on:

torch>=1.10.1 torchvision>=0.11.2

Then install dependencies by:

pip install -r requirments.txt

pip install git+https://github.com/openai/CLIP.git

Data Preparation

See DATASET.md for detailed instructions and tips.

Train/Test for CLIP Model

  • Train the Enhanced Visual Prompting on CIFAR100:
python main.py 
  • Test the Enhanced Visual Prompting:
python main.py --evaluate

Train/Test for non-CLIP Model

We propose a simple pre-processing step to match the pre-trained classes and the downstream classes for non-CLIP model.

  • Train the Enhanced Visual Prompting for the non-CLIP Model:
python main.py --non_CLIP
  • Test the Enhanced Visual Prompting for the non-CLIP Model:
python main.py --non_CLIP --evaluate 

Citation

@article{wu2024evp,
  title   = {Unleashing the Power of Visual Prompting At the Pixel Level}, 
  author  = {Wu, Junyang and Li, Xianhang and Wei, Chen and Wang, Huiyu and Yuille, Alan and Zhou, Yuyin and Xie, Cihang},
  journal = {TMLR},
  year    = {2024}
}

Contact

Junyang Wu

Xianhang Li

If you have any question about the code and data, please contact us directly.

evp's People

Contributors

jywu511 avatar xhl-video avatar cihangxie avatar

Stargazers

Xinzi Cao avatar Abyssrium avatar Linyz avatar  avatar Nanyang Du avatar Francesco Laiti avatar An-zhi WANG avatar Xing Yun (邢云) avatar Shengming Yuan avatar  avatar ChrisXue avatar Han Zhou avatar Lu Ming avatar Chenming Li avatar Xin Zhao avatar Yuchong Yao avatar Ju He avatar Ellen Wang avatar Siyuan Yan avatar  avatar Vishaal Udandarao avatar wangxun avatar FlyingRoastDuck avatar  avatar Kaeli avatar 爱可可-爱生活 avatar Xiangtai  Li avatar Xu Ma avatar Hui(Norbert) Zheng avatar  avatar Haobo Yuan avatar vns avatar Lixiang Ru avatar Weipeng Xu avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.