dlpy.model.Model.load_weights_from_caffe¶
-
Model.
load_weights_from_caffe
(path, labels=False, data_spec=None, label_file_name=None, label_length=None)¶ Load the model weights from a HDF5 file
Parameters: - path : string
Specifies the server-side directory of the HDF5 file that contains the weight table.
- labels : bool
Specifies whether to use ImageNet classification labels
- data_spec : list of DataSpec, optional
data specification for input and output layer(s)
- label_file_name : string, optional
Fully qualified path to CSV file containing user-defined classification labels. If not specified, ImageNet labels assumed.
- label_length : int, optional
Length of the classification labels (in characters).