def _build_final_model(self, load_top_weights=False, load_final_weights=False):
    ' Build Final Model\n\n        Build the final BlendHunter model.\n\n        Parameters\n        ----------\n        load_top_weights : bool\n            Option to load the top model weights\n        load_final_weights : bool\n            Option to load the final model weights\n\n        Returns\n        -------\n\n            Final model\n\n        '
    vgg16_model = self._build_vgg16_model(self._image_shape)
    top_model = self._build_top_model(vgg16_model.output_shape[1:], dropout=0.4)
    if load_top_weights:
        top_model.load_weights('{}.h5'.format(self._top_model_file))
    model = Model(inputs=vgg16_model.input, outputs=top_model(vgg16_model.output))
    if load_final_weights:
        model.load_weights('{}.h5'.format(self._final_model_file))
    return model
Build Final Model

Build the final BlendHunter model.

Parameters
----------
load_top_weights : bool
    Option to load the top model weights
load_final_weights : bool
    Option to load the final model weights

Returns
-------

    Final model
def _build_final_model(self, load_top_weights=False, load_final_weights=False):
    ' Build Final Model\n\n        Build the final BlendHunter model.\n\n        Parameters\n        ----------\n        load_top_weights : bool\n            Option to load the top model weights\n        load_final_weights : bool\n            Option to load the final model weights\n\n        Returns\n        -------\n\n            Final model\n\n        '
    vgg16_model = self._build_vgg16_model(self._image_shape)
    top_model = self._build_top_model(vgg16_model.output_shape[1:], dropout=0.4)
    if load_top_weights:
        top_model.load_weights('{}.h5'.format(self._top_model_file))
    model = Model(inputs=vgg16_model.input, outputs=top_model(vgg16_model.output))
    if load_final_weights:
        model.load_weights('{}.h5'.format(self._final_model_file))
    return model