Code Monkey home page Code Monkey logo

tensorflow-xception's Introduction

TensorFlow-Xception

TensorFlow implementation of the Xception Model by François Chollet, based on the paper: Xception: Deep Learning with Depthwise Separable Convolutions.

As an example, the model will be trained on the Flowers dataset.

Contents

  1. xception.py: The model implementation file.
  2. xception_preprocessing.py: This is the exact same preprocessing used for inception models.
  3. xception_test.py: A test file to check for the correctness of the model implementation. Can be executed by itself.
  4. write_pb.py: A file to freeze your graph for inference purposes after training your model.
  5. train_flowers.py: An example script to train an Xception model on the flowers dataset.
  6. eval_flowers.py: An example script to evaluate your trained Xception model.
  7. dataset: A folder containing the flowers dataset prepared in TFRecords format.

How to Run

  1. run python train_flowers.py from the root directory to start training your Xception model from scratch on the Flowers dataset. A log directory will be created.
  2. run tensorboard --logdir=log on the root directory to get your tensorboard visualizations.
  3. Tweak around with the hyperparameters and have fun! :D

Customization

You can simply change the dataset files and the appropriate names (i.e. anything that has the name 'flowers') to use the network for your own purposes. Importantly, you should be able to obtain the TFRecord files for your own dataset to start training as the data pipeline is dependent on TFRecord files. To learn more about preparing a dataset with TFRecord files, see this guide for a reference.

References

  1. Xception: Deep Learning with Depthwise Separable Convolutions.
  2. Code from the transfer learning guide
  3. Keras implementation of the model
  4. TF-Slim layers reference

tensorflow-xception's People

Contributors

kwotsin avatar mlopezantequera avatar

Watchers

wyz avatar paper2code - bot 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.