GithubHelp home page GithubHelp logo

lkreiskoether / frozen-graph-training Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 43.41 MB

Training of a deep learning classifier in form of a frozen graph in TensorFlow 2 using VGG-16 trained on ImageNet as a base network.

License: MIT License

Python 100.00%
tensorflow tensorflow2 deep-learning image-classification

frozen-graph-training's Introduction

frozen-graph-training

This code offers the possibility of training deep learning based image classifiers in TensorFlow 2 using VGG-16 trained on ImageNet as a base network. Data augmentation and resampling are used by default. The final model is finally stored as frozen graph and can be used for inferencing in TensorFlow 1. The example images in the image folders are taken from [1].

Setup

Clone the repository:

git clone https://github.com/lkreiskoether/frozen-graph-training.git

General usage

python fg_training.py <path to folder containing image folders> <path folder for model storing> '[<x-dim images>,<y-dim images>]' <number of epochs> <learning rate> <batch size> <data split for validation & testing> <data split for testing based on data split for validation & testing> 

Example usage

python fg_training.py mvtec mvtec '[448,448]' 50 0.00001 8 0.3 0.5

Acknowledgements

Thanks to https://leimao.github.io/blog/Save-Load-Inference-From-TF2-Frozen-Graph/ for providing the code for storing frozen graph models in TensorFlow 2.

References

[1] P. Bergmann, M. Fauser, D. Sattlegger, and C. Steger, “MVTEC ad-A comprehensive real-world dataset for unsupervised anomaly detection,” in Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, 2019, vol. 2019-June, pp. 9584–9592, doi: 10.1109/CVPR.2019.00982.

frozen-graph-training's People

Contributors

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