dlpy.model.Model.load_weights_from_keras¶
-
Model.
load_weights_from_keras
(path, labels=False, data_spec=None, label_file_name=None, label_length=None, use_gpu=False, embedding_dim=None)¶ Load the model weights from a HDF5 file
- Parameters
- pathstring
Specifies the server-side directory of the HDF5 file that contains the weight table.
- labelsbool
Specifies whether to use ImageNet classification labels Default: False
- data_speclist of
DataSpec
, optional data specification for input and output layer(s) Default: None
- label_file_namestring, optional
Fully qualified path to CSV file containing user-defined classification labels. If not specified, ImageNet labels assumed. Default: None
- label_lengthint, optional
Length of the classification labels (in characters). Default: None
- use_gpuboolean, optional
Require GPU for processing model Default: False
- embedding_dimint, optional
Specifies text embedding dimension. You must specify the data_spec parameter or this parameter is ignored. Default: None