Giter VIP home page Giter VIP logo

cm30080's Introduction

CM30080

Environment

Linux / macOS

Packages included in requirements.txt. Create a virtual environment and install:

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

Windows (Powershell)

python3 -m venv venv
venv\Scripts\Activate.ps1
pip install -r requirements.txt

Usage

Task 1

Prediction and Evaluation

  1. Change into the directory task1:
cd ./task1
  1. Run task1.py:
python ./task1.py

This will output predicted angles, mean squared error, accuracy, and elapsed time to the console.

Task 2

Prediction

  1. Change into the directory task2:
cd ./task2
  1. Run task2.py:
python ./task2.py --test_directory_path ./test/images --train_directory_path ./train/png --sampling_levels 3 4

This will write prediction annotations and images to ./predict/annotations and ./predict/images respectively based on the templates in ./train/png and test images in ./test/images for sampling levels 3 and 4. You may wish to run sampling prediction in parallel in two separate shells for speed.

Evaluation

  1. Change into the directory task2:
cd ./task2
  1. Run evaluate.py:
python ./evaluate.py --pred_path_root ./predict/annotations/3 --gt_path_root ./test/annotations

This will output evaluation scores for the predictions in ./predict/annotations/3 against the ground truth values in ./test/annotations.

Task 3

Prediction and Evaluation

  1. Change into the directory task3:
cd ./task3
  1. Run task3.py:
python ./task3.py --train_image_directory ./train_images/ --test_image_directory ./TestWithoutRotations/images/ --test_annotation_directory ./TestWithoutRotations/annotations/ --additional_test_image_directory ./Task3AdditionalTestDataset/images/ --additional_test_annotation_directory ./Task3AdditionalTestDataset/annotations/

This will output the TP, FP, FN and recall for each image. You can change the output type with the boolean SHOW and EVAL variables at the beginning of task3.py.

cm30080's People

Contributors

wqueree avatar byronkf54 avatar

Stargazers

 avatar

Watchers

 avatar Kostas Georgiou 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.