TensorFlow Hub
What is TensorFlow hub?
TensorFlow Hub is a library for the publication, discovery, and consumption of reusable parts of machine learning models. A module is a self-contained piece of a TensorFlow graph, along with its weights and assets, that can be reused across different tasks in a process known as transfer learning.
Use with TensorFlow 2
Use pip to install TensorFlow 2 as usual. (See there for extra instructions about GPU support.) Then install a current version of tensorflow-hub next to it (must be 0.5.0 or newer).
$ pip install "tensorflow>=2.0.0" $ pip install --upgrade tensorflow-hub