Giter Club home page Giter Club logo

rotationnet's Introduction

Rotation Net

Estimation of image rotation angle with convolutional neural networks

Installation:

links to the used datasets:

structure of the project:

files:

  • train_coco_dataset.py
    • This script can be used to train the model on the COCO dataset. The trained model is saved in the models folder and the history in the models_history folder.
  • train_street_view_dataset.py
    • This script can be used to train the model on the Street View dataset. The trained model is saved in the models folder and the history in the models_history folder.
  • predict_model.py
    • Here a trained model can be loaded and a prediction of an image can be performed. The image can be loaded via a FilePath and the rotation angle for the previously performed rotation can be specified.
  • evaluate_dataset.py
    • In this script, a trained model can be loaded and an evaluation of the validation dataset can be performed with the model.
  • create_history_plot_from_file.py
    • This script reads the saved history of a trained model and generates a loss and an angle error plot.
  • helpers.py
    • This script contains helper functions necessary for training, evaluation and testing. These are on the one hand image rotation functions, custom loss functions and plot functions.
  • test_model.py
    • Script to test different rotations of an image with a trained model.
  • Files that are no longer used:
    • rotate_and_save_to_file.py
      • File loads images from a specified folder and stores them in a new folder randomly rotated. The target structure is such that one folder is created per rotation angle.
    • generate_rotated_file_structure.py
      • File loads images from a folder where the images are already rotated without structure. The images are moved to a destination folder and a folder is created for each rotation angle.
    • train_rotated_coco_dateset.py
      • File to train a model directly on rotated images.

directories:

  • data
    • Must be created by downloading the images from Google Drive and then pushing them into the Models folder
  • models
    • Contains the two models trained over 100 epochs
  • models_history
    • Contains the histories in Numpy format of the trained models

rotationnet's People

Contributors

tobicar avatar

Watchers

 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.