Inference with Tensorflow in Java

Inference with Tensorflow in Java

We talk about the struggles I had with running inferences in Java using a Keras model in tensorflow. This is the train.py used in this example. import tensorflow as tf #import tensorflowjs as tfjs import os from datetime import datetime from tensorflow.keras.models import Sequential, Model from tensorflow.keras.layers import Conv2D, MaxPooling2D, BatchNormalization, Layer from tensorflow.keras.layers import…