Giter Site home page Giter Site logo

zhengzangw / doprompt Goto Github PK

View Code? Open in Web Editor NEW
46.0 3.0 4.0 1.43 MB

Official implementation of PCS in essay "Prompt Vision Transformer for Domain Generalization"

License: MIT License

Python 77.07% TeX 22.93%
deep-learning domain-adaptation domain-generalization prompt-tuning vision-transformer

doprompt's Introduction

Hello there! This is the Github page of Zangwei Zheng (Alex).

  • ๐Ÿ“– Pursuing PhD in CS at the National University of Singapore.
  • ๐ŸŽ“ Conducting research on Efficient Maching Learning, ML Optimization.
  • ๐Ÿ’ก Have a wide interest on applications of NLP, CV, Rec, RL, ...
  • ๐Ÿ‘€ Open to collaborating on new projects.
  • ๐Ÿ’ฌ Visit my homepage for more information.

GitHub stats

doprompt's People

Contributors

accumulated avatar alexrame avatar ashok-arjun avatar daysm avatar dnap512 avatar igul222 avatar jc-audet avatar jungwon-choi avatar lopezpaz avatar m-just avatar ryoungj avatar shahtalebi avatar sirrob1997 avatar yugeten avatar zdhnarsil avatar zhengzangw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

doprompt's Issues

About hyperparameters

Hi, thanks for sharing your great works.

I'm trying to reproduce the result of ERM(3rd row in Table.1 from your paper), but I got a bit lower performance on OfficeHome dataset. I ran your source code with hyperparameters described in your paper(lr=1e-05, weight_decay=1e-02, last dropout=0.1), and I got 72.767% of target accuracy averaged on 3 different random seeds. I think I'm missing some other hyperparameters such as classifier LR multiplier or attention dropout probability in vision transformer which are not clarified in the paper.

Could you kindly share the searched hyperparameters on each dataset?

Table3

Hello, your explanation in Table 3 states that the upper right corner is the distance between the domains, that is, the distance between the centroids of the domains. However, according to the data in the table, there is also a distance between the centroids of the same domain. For example, in the VIT-base table, the centroid distance between P and P is 23.5.

So I have a question: should the order of A P R C on the vertical axis be the same as the order of A C P R on the horizontal axis?

reproduce result

I try to use your recommend training command (3rd and 4th) to reproduce the result of ERM and DoPrompt in PACS, but the performance of DoPrompt is lower than ERM (i.e., in A out of PACS, ERM is 90 while DoPrompt is 89.2.). Can you check the training commend again and suggest me what I am wrong? Thanks!

Is the pretrained model frozen in the training phase?

Hi, it seems that all the parameters in the model are updated during training, including the pretrained model. However, I find it that they are usually kept frozen in the field of prompt learning (e.g. in Visual Prompt Tuning, the backbone is frozen, while only the prompt tokens are allowed to be trained). I want to know whether it's my misunderstanding or intentional design. Thanks.

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.