Giter Site home page Giter Site logo

ryoungj / optdom Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 3.0 15.35 MB

[ICLR'22] Self-supervised learning optimally robust representations for domain shift.

License: MIT License

Jupyter Notebook 30.49% Python 68.58% Shell 0.93%
python self-supervised-learning domain-generalization distribution-shift representation-learning pytorch machine-learning

optdom's People

Contributors

ryoungj avatar

Stargazers

 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

optdom's Issues

Why there is a performance gap between the CAD in this repo and the Domainbed repo

Hi @ryoungj! Thanks for this outstanding work. I really appreciate your public code.

Recently, I am trying to reproduce the results of CAD (based on ResNet-50 backbone) in your paper. But I found a performance gap between this repo (83.5) and the domainbed repo (79.5) in PACS. In detail, for both repositories, I swept 40 hyper-params already. And in this repo, I use the run_sweep_e2e_domainbed.sh.

My questions are

  • (1) Could you help me clarify why there is a performance gap between these repositories? and which one should I use?
  • (2) The reported "CAD" results in your paper are all for the CAD instead of CondCAD. Is this right?
  • (3) By the way, if my understanding is correct, the results of CAD based on ResNet-50 are reported in Tab. 4 and 5 in your paper?

Pls correct me if there is something wrong. Thank you so much.

About CLIP S results

Hello @ryoungj,

first of all, thank you for sharing your code! This is an amazing work!

I read your paper and I would start to replicate the results that you reported in Table 1.
In particular, I would replicate "CLIP S" (4th row).
If I correctly understood these numbers are obtained using as feature extractor the pre-trained CLIP model (Resnet-50). With the source features extracted from this pre-trained model, an MLP is trained with a supervised contrastive loss function.

So my questions are:
1 - Did I correctly understand CLIP S meaning?
2 - Why did you use a supervised contrastive loss function instead of a standard cross-entropy loss?
3 - How can I replicate these numbers using the code that you shared?

Thank you.

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.