Giter Club home page Giter Club logo

rice_biomass_cnn's Introduction

Rice Biomass CNN

Rice Biomass CNN is a model to estimate the rice above ground biomass (biomass) based on RGB image of rice canopy. The model is developed based on more than 9,000 images of 28 cultivars. This project is the implementation of the paper "Biomass estimation of World Rice (Oryza sativa L.) Core Collection based on the convolutional neural network and digital images of canopy".

Performance

The model explained approximately 95% of variation in observed rice biomass using the test dataset, and 87% of variation using the independent prediction dataset.

Conditions on estimation

RGB images that were captured vertically downwards over the rice canopy from 1.5m above the ground using a digital camera should be input.

example

Environment on experiments

OS

  • Ubuntu 18.04.5 LTS

CPU

  • Intel(R) Xeon(R) W-2295 CPU @ 3.00GHz 18 cores

GPU

  • NVIDIA GeForce RTX 3090 x2

CUDA

  • Cuda compilation tools, release 11.3, V11.3.109

Python

  • Python 3.8.8

Installation

  1. Install depentencies.
pip install -r requirements.txt
  1. Install Tensorflow

Please install Tensorflow version compatible with your cuda version.

  1. Download pre-trained model from google drive.
mkdir checkpoints
wget "https://drive.google.com/file/d/1km2PlyGH8Y4CZuQ4OaQgxPdPqNkT7FIo/view?usp=sharing" -O rice_biomass_CNN_weights.hdf5
wget "https://drive.google.com/file/d/1pfUo9NcteQ-R0g9RJR7LH5IzJmrV1NnX/view?usp=sharing" -O rice_biomass_CNN_model

Estimation

Run

python estimate.py --checkpoint_path checkpoints/rice_biomass_CNN.hdf5 --image_dir example --csv

You can find estimated biomass on your console.

Belows are meanings of options.

  • checkpoint_path : Path to the checkpoint file you saved.

  • image_dir : path to the directory where images are saved.

  • csv: If you set this, csv of results will be generated.

rice_biomass_cnn's People

Contributors

kotanakajima avatar

Stargazers

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