After running the command:docker run --rm -p 8501:8501
–mount type=bind,
source=/tmp/tfserving/serving/tensorflow_serving/servables/tensorflow/testdata/saved_model_half_plus_two_cpu,
target=/models/half_plus_two
-e MODEL_NAME=half_plus_two -t tensorflow/serving
I got the following error:
Error in Docker logs:
2024-04-05 11:57:51 2024-04-05 08:57:51.006042: W tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:252] No versions of servable half_plus_two found under base path /models/half_plus_two. Did you forget to name your leaf directory as a number (eg. ‘/1/’)?
There’s a problem with the way the respository is managed on your machine.
Either undo your changes via git reset --hard HEAD or remove the repository and clone it again.