Closed tessgadwa closed 2 years ago
The error Could not find directory /Users/tessgadwa/.keras/datasets/banner-images
is thrown from the code that tries list images, image_paths, labels, class_names = dataset_utils.index_directory()
. It seems there is an issue with the input path for the script.
Thank you for pointing me in the right direction.
What happened?
I was able to train and save a custom model using the make_image_classifier tool provided at https://github.com/tensorflow/hub/tree/master/tensorflow_hub/tools/make_image_classifier.
I was then able to successfully load this custom model to a Tensorflow Serving localhost.
However, I could not find any way to effectively test my custom model with new images. Because I am using a Mac with M1 chip, deploying to TF Lite is not an option. This tutorial runs fine on my local machine, but swapping in the custom model URL absolutely does not work!
It appears that I am missing a critical step. Can you provide any guidance on what is?
Relevant code
Relevant log output
tensorflow_hub Version
0.12.0 (latest stable release)
TensorFlow Version
other (please specify)
Other libraries
I am running TF version: 2.9.2 [Drop-down above would not let me add the correct version.]
I am also using tensorflow-macos and tensorflow-metal to provide support for Apple's ARM64 M1 chip.
I converted my most recent Jupyter notebook (based on the flowers classification example at https://www.tensorflow.org/tutorials/images/classification) to an .MD text document and attached the file, in case this is helpful.
tf2_image_retraining.md
Python Version
3.x
OS
macOS