Code Monkey home page Code Monkey logo

repbottleneck's Introduction

PyTorch Implementation of Representation Bottleneck

Overview

This repository evaluates multi-order interaction strengths of timm backbones for visual representation learning, which is based on Discovering and Explaining the Representation Bottleneck of DNNs (ICLR'2022) and the official implementation (code).

Installation

This repository works with PyTorch 1.8 or higher and timm. There are installation steps with the latest PyTorch:

conda create -n bottleneck python=3.8 pytorch=1.12 cudatoolkit=11.3 torchvision -c pytorch -y
conda activate bottleneck
pip install -r requirements.txt

Then, please download datasets and place them under './datasets'. CIFAR-10 will be automatically downloaded, while ImageNet should be downloaded and unziped manually.

Usage

We only support the evaluation of pre-trained models. Please download released pre-trained models from timm and place them in './timm_hub'. We provide examples on ImageNet in 'interaction_in1k.sh':

bash interaction.sh

You can uncomment the setting (the model name and ckeckpoints) you want to run on top of the script. The results will be saved in the results directory by default.

Citation

Please cite the relevant papers if you find this repository useful in your research.

@article{Deng2022Discovering,
  title={Discovering and Explaining the Representation Bottleneck of DNNs},
  author={Huiqi Deng and Qihan Ren and Xu Chen and Hao Zhang and Jie Ren and Quanshi Zhang},
  journal={ArXiv},
  year={2022},
  volume={abs/2111.06236}
}
@article{Wu2022Discovering,
  title={Discovering the Representation Bottleneck of Graph Neural Networks from Multi-order Interactions},
  author={Fang Wu and Siyuan Li and Lirong Wu and Stan Z. Li and Dragomir Radev and Q. Zhang},
  journal={ArXiv},
  year={2022},
  volume={abs/2205.07266}
}

repbottleneck's People

Contributors

lupin1998 avatar

Stargazers

 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.