Giter Club home page Giter Club logo

aiaquami-training's Introduction

AIAQUAMI Training Scripts

Training scripts for the AIAQUAMI project

Prerequisites

  • Training process relies on TensorFlow 2.9.3.
  • To be able to use TensorFlow 2.9.3 on GPU you must first install CUDA 11.2 and cuDNN 11.2.
  • After setting up CUDA and cuDNN, install project requirements listed in requirements.txt file.

Train model on a custom dataset

  1. Create root folder for the dataset and place images into data/data_original subfolder. Images for each class should be placed in a separate folder. Name of these folders should correspond to class names.
  2. In settings.py change value for root_folder variable to appropriate value.
  3. Reset experiment_no to 1 and check other parameters available in settings.py.
  4. Run prepare_data.py script to resize images and divide them into train, validation, and test subsets.
  5. Run train.py to train the model, generate confusion matrices and Grad-CAM heatmaps. Results will be saved to tmp dataset subfolder.
  6. In case training crushes due to lack of memory, reduce batch_size or choose smaller model and repeat training.
  7. Once training is finished, you may find results in tmp folder, under the current experiment subfolder.

Download pretrained models

Pretrained models are available for download in the repository release section:
https://github.com/a-milosavljevic/aiaquami-training/releases

Acknowledgement

This research was supported by the Science Fund of the Republic of Serbia, #7751676, Application of deep learning in bioassessment of aquatic ecosystems: toward the construction of automatic identifier of aquatic macroinvertebrates - AIAQUAMI.

aiaquami-training's People

Contributors

a-milosavljevic 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.