cs230-code-examples
cs230-code-examples copied to clipboard
Added example for prediction
Hello,
I just added an example to the cs230 code for simple prediction of a set of images. For this, I added the following files according to the train/training and evaluate/evaluation split:
tensorflow/vision/predict.py
tensorflow/vision/prediction.py
Additionally, I had to change the input_fn
and model_fn
functions to work not only for TRAIN and EVAL but also for the PREDICT case.
I think this change is quite helpful since I myself have searched a lot for examples on how to do the prediction with a saved TensorFlow model.
Best regards, Alex