Coder Social home page Coder Social logo

all-things-vits / code-samples Goto Github PK

View Code? Open in Web Editor NEW
152.0 6.0 11.0 15.02 MB

Holds code for our CVPR'23 tutorial: All Things ViTs: Understanding and Interpreting Attention in Vision.

Home Page: https://all-things-vits.github.io/atv

License: Apache License 2.0

Jupyter Notebook 100.00%
attention cvpr2023 diffusers explainability representation-learning timm transformers tutorial vision-transformers

code-samples's Introduction

All Things ViTs (CVPR'23 Tutorial)

By: Hila Chefer (Tel-Aviv University and Google) and Sayak Paul (Hugging Face) (with Ron Mokady as a guest speaker)

Holds code for our CVPR'23 tutorial: All Things ViTs: Understanding and Interpreting Attention in Vision. We leverage ๐Ÿค— transformers, ๐Ÿงจ diffusers, timm, and PyTorch for the code samples.

๐ŸŒ Quick links:

Using the code samples

We provide all the code samples as Colab Notebooks so that no setup is needed locally to execute them.

We divide our tutorial into the following logical sections:

  • explainability: has the notebooks that show how to generate explanations from attention-based models (such as Vision Transformers) on the basis of their predictions.
    • CLIP_explainability.ipynb
    • Comparative_Transformer_explainability.ipynb
    • Transformer_explainability.ipynb
  • probing: has notebooks the probe into the representations learned by the attention-based models (such as Vision Transformers).
    • dino_attention_maps.ipynb
    • mean_attention_distance.ipynb

Below we provide links to all the Colab Notebooks:

Section Notebook Name Colab Notebook
explainability CLIP_explainability.ipynb Open In Colab
Comparative_Transformer_explainability.ipynb Open In Colab
Transformer_explainability.ipynb Open In Colab
probing dino_attention_maps.ipynb Open In Colab
mean_attention_distance.ipynb Open In Colab

Disclaimer

The following notebooks were taken from their original repositories with the authors being aware of this:

  • CLIP_explainability.ipynb (original)
  • Transformer_explainability.ipynb (original)

code-samples's People

Contributors

hila-chefer avatar sayakpaul 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.