Code Monkey home page Code Monkey logo

flowers_classification's Introduction

Flowers_Classification

Python version GitHub issues GitHub forks GitHub Stars License

Flower Species Classifier using TensorFlow.

About this repo:

In this repo, I used TensorFlow to build VGG16 Neural Network and train it from scratch using the 102 Category Flower Dataset, a dataset consisting of 102 flower categories.

Content:

  • categories_names.json: a json file conaining the flowers/categories names.
  • prepocessing.py: the code used to preprocess the images.
  • run_training.py: the code used to launch the training.
  • test.py: the code used to test the model once it is trained.
  • train.py: the code used to train the model.
  • utils.py: a python file containing utils functions.
  • vgg_16.py: the code used to build the VGG16 model.
  • requirements.txt: a text file containing the needed packages to run the project.

Train and test the model:

1. Prepare the environment:
NB: Use python 3+ only.
Before anything, please install the requirements by running: pip3 install -r requirements.txt.

2. Prepare the data:
Download the 102 Category Flower Dataset available via this link.
Extract all the files into a flower_data/ directory.
The extracted data into flower_data/ should be organized as follows:
flower_data/ should contain three folders named train/, test/ and valid/.
Optional: you can convert all the dataset into npy file by uncommenting lines 33 and 34 of preprocessing.py.

3. Train the VGG16 model: (from scratch)
To train the model, run python3 run_training.py.
The trained model will be saved to a directory named model/.

4. Test the model:
To test your trained model, run python3 run_testing.py. Don't forget to change the image's and the model's paths.

flowers_classification's People

Contributors

dependabot[bot] avatar maky-hnou avatar

Stargazers

 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.