Turi Create
4.0
|
#include <toolkits/style_transfer/st_resnet16_model_trainer.hpp>
Public Member Functions | |
ResNet16Checkpoint (Config config, const std::string &resnet_mlmodel_path) | |
ResNet16Checkpoint (Config config, neural_net::float_array_map weights) | |
std::unique_ptr< ModelTrainer > | CreateModelTrainer () const override |
neural_net::model_spec | ExportToCoreML () const override |
Subclass of Checkpoint that generates ResNet16ModelTrainer instances.
Definition at line 19 of file st_resnet16_model_trainer.hpp.
turi::style_transfer::ResNet16Checkpoint::ResNet16Checkpoint | ( | Config | config, |
const std::string & | resnet_mlmodel_path | ||
) |
Loads a pretrained model to use as a starting point.
turi::style_transfer::ResNet16Checkpoint::ResNet16Checkpoint | ( | Config | config, |
neural_net::float_array_map | weights | ||
) |
Loads weights saved from a ResNet16ModelTrainer.
|
overridevirtual |
Loads the checkpoint into an active ModelTrainer instance.
Implements turi::style_transfer::Checkpoint.
|
overridevirtual |
Returns the CoreML spec corresponding to the current model.
The first layer of the model should have a single input: the image to stylize. The last layer of the model should have a single output: the stylized image.
Implements turi::style_transfer::Checkpoint.