Code Monkey home page Code Monkey logo

bob-ood-classification's Introduction

BoB-OOD-Classification

This repository is the official implementation of Out-of-Distribution Image Classification task in the Battle of the Backbones: A Large-Scale Comparison of Pretrained Models across Computer Vision Tasks.

Dependencies

Version Control of Python libraries in environment.yml file. To create a virtual environment:

conda env create -f environment.yml

Classification OOD experiments

Dependencies:

Install tlllib

python3 -m pip install -i https://test.pypi.org/simple/ tllib==0.4

Instructions

We include shell scripts to benchmark OOD generalization performance for image classification: for robustness to style and structure variations on ImageNet variants (ImageNet Sketch, Renditions, Adversarial, and V2), and synthetic-to-real generalization on VisDA2017.

To evaluate on ImageNet variants, run:

bash eval_classifier_ood.sh

To train on VisDA (syn), and evaluate on VisDA (real), run:

bash eval_classifier_ood.sh

Update the following variables as appropriate:

BACKBONE, VALID_LABELS_INA, VALID_LABELS_INR, CHECKPOINT, DATA_DIR

bob-ood-classification's People

Stargazers

Nikolaos Dionelis 2023 avatar Avi Schwarzschild avatar  avatar hiyyg avatar Monte Hoover avatar Vishaal Udandarao avatar

Watchers

Hossein Souri avatar

bob-ood-classification's Issues

eval_classifier_ood.sh missing

Hi, thank you for preparing such a well designed benchmark. I was trying to evaluate the performance of ConvNext, however the torchvision weights are resulting in a very poor performance. I can't find the eval_classifier_ood.sh so I am not able to reproduce your results. Would you kindly share the script. 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.