Skip to content

Instantly share code, notes, and snippets.

View rahuldeepattri's full-sized avatar
🏠
Working from home

RahulDeep Attri rahuldeepattri

🏠
Working from home
  • Microsoft
View GitHub Profile
@asimshankar
asimshankar / export.py
Created June 20, 2017 00:17
Keras Models --> TensorFlow SavedModel format
# Mostly copied from https://keras.io/applications/#usage-examples-for-image-classification-models
# Changing it to use InceptionV3 instead of ResNet50
from keras.applications.inception_v3 import InceptionV3, preprocess_input, decode_predictions
from keras.preprocessing import image
import numpy as np
model = InceptionV3()
img_path = 'elephant.jpg'