Code Monkey home page Code Monkey logo

fluid's Introduction

FLUID

The PyTorch implementation for the FLUID learning and evaluation framework. The FLUID framework aims to more closely simulate real-world learning conditions while naturally conglomerating the objectives of previous learning frameworks such as few-shot, continual, and self-supervised learning. FLUID is designed to enable research towards general ML systems that incorporate the specialized techniques and insights made across the diverse set of ML subfields.

To learn more about the framework and the revealing insights on generalization and current methods paper. To submit results to the FLUID Leaderboard visit the website. For more documentation of the code see overview.md.

Getting Started

Installation

  • Clone this repo:
git clone [email protected]:RAIVNLab/FLUID.git
cd [email protected]:RAIVNLab/FLUID.git
  • Install PyTorch and other dependencies
    • For pip users, type the command pip install -r requirements.txt.
    • For Conda users, you can create a new Conda environment using conda env create -f environment.yml.
  • Download data
    • Download the compressed data file from google drive, unzip it, and place it in the InTheWild folder.
    • The data is organized into 6 folders. The folder 1k_res contains the images from the base classes of ImageNet-1k that are not included in standard ImageNet-1k. SequenceN contains the images and sequenceN.npy contains the image order for the nth sequence of data. Sequences 1-2 are for validation and sequences 3-5 are for testing.
      |-- data
         |--1k_res
         |--S1
          |--sequence1
          |--sequence1.npy
         |--S2
          |--sequence2
          |--sequence2.npy
          .
          .
         |--S5
          |--sequence5
          |--sequence5.npy

Running The Code

Code Structure

Main.py deploys an ML system which is updated and evaluated under the incoming stream of data. The ML system consists of a model (in model.py) and an update strategies (in trainer.py). For more documentation of the code see overview.md.

Example Commands

Deploy a pretrained ResNet-18 updated with fine-tuning on sequence 5:

python main.py --classifier linear --backbone resnet-18 --trainer finetune --sequence_num 5 --pretrain

Nearest Class Mean with pretrained ResNet-50 on sequence 4:

python main.py --classifier knn --backbone resnet-50 --trainer knn --sequence_num 4 --pretrain 

For questions about the code base, data, or paper email mcw244 at cs.washington.edu

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.