Code Monkey home page Code Monkey logo

cyborgxreactiontime's Introduction

CYBORG + ReactionTime

A special thanks and credit to Zach Carmichael for providing many components of the core code of this project

Research To Do

Motivation

  • No work comparing reaction times CYBORG (i.e. what works best?)

Research Questions

  • What improves model performance most? (reaction time, or CYBORG)?
  • Can reaction time help CYBORG improve?
  • What is the best way to use reaction time with deep learning models?
    • In the loss term?
    • In a regularization term?

Experiments

Results

Relevant Papers

CYBORG: CYBORG: Blending Human Saliency Into the Loss Improves Deep Learning ( WACV 2023)

Reaction times: Measuring Human Perception to Improve Handwritten Document Transcription (TPAMI 2021)

Installing Necessary Dependencies

You can install this in a pip environment

python3 venv -m env
source env/bin/activate
pip3 install -r requirements.txt

Running Code

You can run (and optionally set the log level) via the following:

CYBORG_SAL_LOG_LEVEL=INFO ./main.py ...

Run the following for help:

./main.py -h

General options:

./main.py \
  -B DenseNet121 \
  ... \
  --epochs 2 \
  --gpus 1 \
  --quick-test \
  --batch-size 64 \
  --hparam-tune \
  --stochastic-weight-averaging

CYBORG:

./main.py \
  -B DenseNet121 \
  -L CYBORG \
  -T original_data \
  --cyborg-loss-alpha 0.5

CYBORG+REACTIONTIME:

./main.py \
  -B DenseNet121 \
  -L CYBORG+REACTIONTIME \
  -T original_data \
  --cyborg-loss-alpha 0.5

You can also run this with WandB. Most of this follows their PyTorch-Lightning setup.

You can track your experiments by passing the flag --use-wandb-logger true to your run script.

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.