Giter VIP home page Giter VIP logo

cv2022final's Introduction

CV2022Final - Pupil Tracking

Getting started

# Copy dataset/ into this directory
# (Using python 3.8.13)
pip3 install -r requirements.txt

cd script/
# Use model.pth to perform prediction
python3 eval.py

# Train your own model
python3 main.py

Current results

  • model1.pth
    • Overall weighted IoU: 0.7649
    • Average true negative rate: 0.8996
    • Benchmark score: 0.8053
  • model4.pth
    • Overall weighted IoU: 0.7756
    • Average true negative rate: 0.8841
    • Benchmark score: 0.8082
  • model12.pth
    • Overall weighted IoU: 0.7745
    • Average true negative rate: 0.9966
    • Benchmark score: 0.8411
  • model14.pth
    • Overall weighted IoU: 0.9340
    • Average true negative rate: 0.9703
    • Benchmark score: 0.9449

TODO

  1. Let the model predict confidence score
  2. Deal with imbalance data (e.g. focal loss, dice loss, etc.)
  3. Add CV preprocessed mask into input
  4. Add image augmentation (albumentation library)
  5. Test-time augmentation might be useful too

Files

  • script/main.py
    • Training segmentation model
  • script/dataset.py
    • Wrapping customized PyTorch dataset
  • script/model.py
    • Get model from segmentation_models_pytorch
  • script/loss.py
    • Implement loss functions and evaluation metrics
  • script/predict.py
    • Deep learning predicting function for eval.py
  • script/predict_cv.py
    • Classical CV predicting function for eval.py
  • script/modelXYZ.pth
    • Model weights trained by data SX, SY, SZ

cv2022final's People

Contributors

joey880627 avatar

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.