Git Product home page Git Product logo

cs712's Introduction

CS712 - Submission by Team 6

This project contains all source files, as well as results/logs, for our submission. All sample commands below should work on Linux (including WSL2 on Windows) or Mac.

How to run it

  1. create a subfolder data and put train/val/test image folders under data folder.
$ tree -L 1 data
data
├── test
├── train
└── validation
  1. install all depedencies:
$ pip install -r requirements.txt
  1. preprocess images with the following command:
  • preprocessed results are stored as data/timm_preprocessed_*.npy files.
python preprocess_timm_v2.py
  1. transform data with the following command:
  • transformed data results are stored as data/distance_timm_preprocessed_*.npy files.
python transform_data.py
  1. train the model with the following command.
  • model checkpoints for all epochs are stored under subfolders data/checkpoints/.
$ python train_v9.py
  1. to reproduce results sumbitted to the public leaderboard,
  • run the following command which will load the checkpoints from step 4) to generate results.
  • validation results are stored in data/validation.txt file which is compressed into data/result.zip.
python validate-timm.py
  1. to reproduce results sumbitted to the private leaderboard,
  • run the following command which will load the checkpoints from step 3) to generate results.
  • test results are stored in data/test.txt file which is compressed into data/test-result.zip.
python validate-timm.py -n test

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.