Giter VIP home page Giter VIP logo

uimnet's Introduction

UIMNET

This is UIMNET an Imagenet scale uncertanity quantification benchmark suite.

Usage

Setup and installation

Install environment

conda env create -f conda_env.yaml

Activate environement

. ./script/setup

Install package in development mode

pip install -e .

Run Unit tests

pytests ./tests

Training

Single model

./scripts/run_trainer.py -a ALGORITHM -m MODEL_DIR -a ARCHITECTURE -c CLUSTERING_FILE
python3 -m torch.distributed.launch --nproc_per_node=8 ./scripts/run_trainer.py -a ALGORITHM -m MODEL_DIR -a ARCHITECTURE -c CLUSTERING_FILE -d

Sweep over all models

./run_training.py -s SWEEP_DIR

Calibration

Single model

./scripts/run_calibrator.py -m MODEL_DIR -c CLUSTERING_FILE
python3 -m torch.distributed.launch --nproc_per_node=8 ./scripts/run_calibrator.py -m MODEL_DIR -c CLUSTERING_FILE -d

Sweep over all models

./run_calibration.py -s SWEEP_DIR

In-domain prediction

Single model

./scripts/run_predictor.py -m MODEL_DIR -c CLUSTERING_FILE
python3 -m torch.distributed.launch --nproc_per_node=8 ./scripts/run_predictor.py -m MODEL_DIR -c CLUSTERING_FILE -d

Sweep over all models

./run_prediction.py -s SWEEP_DIR

Ensembling

./scripts/run_ensembles.py -s SWEEP_DIR

Out-of-domain evaluation

Single model

./scripts/run_evaluator.py -m MODEL_DIR -c CLUSTERING_FILE --measure MEASURE
python3 -m torch.distributed.launch --nproc_per_node=8 ./scripts/run_evaluator.py -m MODEL_DIR-c CLUSTERING_FILE -d --measure MEASURE

Sweep over all models

./scripts/run_evaluation.py -s SWEEP_DIR --measures MEASURE1 MEASURE2 ...

License

This source code is released under the MIT license, included Here.

uimnet's People

Contributors

ishmaelbelghazi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

uimnet's Issues

./scripts/run_trainer.py

Could you provide all the necessary files, even minimal, for a minimum example of running ./scripts/run_trainer.py?

s missing in README

I think the following line of the README:
. ./script/setup
should be replaced by:
. ./scripts/setup

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.