Skip to content

Instantly share code, notes, and snippets.

@kwotsin
kwotsin / evaluate_frozen_mobilenet.py
Last active July 3, 2019 06:33
To test the inference speed of a mobilenet trained on the flowers dataset for a while (training is not done rigorously).
import tensorflow as tf
from scipy.misc import imread, imresize
from mobilenet_preprocessing import preprocess_for_eval
import numpy as np
from scipy.misc import imread, imresize
import matplotlib.pyplot as plt
import time
plt.style.use('ggplot')
start_time = time.time()
#======DEFINE SOME ARGUMENTS===========