File
s to load from. Currently, this function supports only
loading from files that contain Keras-style models (i.e., tf.Model
s), for
which an Array
of File
s is expected (in that order):
weightsManifest
contained by the aforementioned JSON file, or errors will be thrown
during loading. These weights files have the same format as the ones
generated by tensorflowjs_converter
that comes with the tensorflowjs
Python PIP package. If no weights files are provided, only the model
topology will be loaded from the JSON file above.An instance of Files
IOHandler
.
Creates an IOHandler that loads model artifacts from user-selected files.
This method can be used for loading from files such as user-selected files in the browser. When used in conjunction with
tf.loadLayersModel
, an instance oftf.LayersModel
(Keras-style) can be constructed from the loaded artifacts.