Commit 553dccfa authored by Yuxin Wu's avatar Yuxin Wu

bugfix

parent 16f8f752
......@@ -153,7 +153,7 @@ def eval_on_ILSVRC12(model, model_file, dataflow):
def image_preprocess(image, bgr=True):
if image.dtype.base_dtype != tf.float32:
image = tf.case(image, tf.float32)
image = tf.cast(image, tf.float32)
image = image * (1.0 / 255)
mean = [0.485, 0.456, 0.406] # rgb
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment