This gist is extracted from the README.rst for https://github.com/ajbouh/tfi
If you encounter problems, please file an issue https://github.com/ajbouh/tfi/issues/new
If you extend the above code to another pre-trained model, please fork this gist and share it!