Git Product home page Git Product logo

explainer's Introduction

Installation

For installation and data preparation, please refer to the guidelines in MMClassification v0.18.0 and MMSegmentation v0.20.2.

All studies are conducted on CUDA 11.4 and pytorch 1.8.1

pip install torchvision==0.9.1
pip install timm==0.3.2
pip install mmcv-full==1.4.1
pip install opencv-python==4.5.1.48
cd DNC_classification && pip install -e . --user

We also provide the conda environment file. You can directly activate it without complex installation via

export PATH="$(pwd)/cellp/bin:$PATH"
export LD_LIBRARY_PATH="$(pwd)/cellp/lib:$LD_LIBRARY_PATH"

Training

For the training of EXPLAINER with ResNet-50 as the backbone, you can run it on Cifar-100 by simply applying the following command:

sh env_run.sh

For other setups, please replace the config file specified in env_run.sh with your customized file. For example, train on ImageNet-1K with swin-small as the backbone, you can apply

./tools/dist_train.sh configs/_pattern_/swin-small_8xb128_in1k.py 4

Testing

For the testing of EXPLAINER, please specify the config and checkpoint file in the following command

python tools/test.py configs/_pattern_/resnet50_EXPLAINER_4xb32_cifar100.py model.pth --metrics accuracy

explainer's People

Contributors

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