Giter Club home page Giter Club logo

eye-segmentation-3rd-rank-winning-solution's Introduction

3D Eye Segmentation - 3rd Rank Winning Solution

Instructions:

There are two separate scripts for Training and Testing.

Training:

  • Training can be done using train_eyesemseg.py. To use CPU when training, use --gpu 0and by default GPU option is enabled.
  • Place the dataset in data/eyeseg directory, please make sure it includes train and val part inside them.
  • Install all the necessary libraries mentioned inside requirements.txt.
  • Simply run the command python train_eyesegmseg.py for default arguments, which include gpu 1 and epoch 32 too.

The model will train for 32 epochs and will save the pretrained model inside log/eyeseg/* directory.

Inference:

  • Testing can be done using test_eyesemseg.py. GPU and CPU option are available for testing as well, using gpu 0.
  • Important arguments are --log_dir pre_trained_model/2021-08-14_19-08, --test_dir test/val --save_labels True/False. --valid can be used if the labels for the test_dir are present inside the directory(eg. in case of val)
  • Finally to run the inference from pre_trained_model (provided by us), run the command python test_eyesemseg.py --log_dir pre_trained_model --test_dir test --save_labels True.
  • The labels can be found as *.npy files inside output folder.
  • To create json file from npy labels, use create_json_ss.py script by running the command python create_json_ss.py --list-file submissionFiles.txt --submission-json pointnet2Submission.json

Credits: This repo contains modified version of Model and Training script from this repo

eye-segmentation-3rd-rank-winning-solution's People

Contributors

jeromepatel avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jessechai

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.