7 #ifndef UNITY_TOOLKITS_COREML_EXPORT_NEURAL_NETS_MODELS_EXPORTER_HPP_ 8 #define UNITY_TOOLKITS_COREML_EXPORT_NEURAL_NETS_MODELS_EXPORTER_HPP_ 14 #include <core/data/flexible_type/flexible_type.hpp> 15 #include <ml/neural_net/model_spec.hpp> 16 #include <toolkits/coreml_export/mlmodel_include.hpp> 17 #include <toolkits/coreml_export/mlmodel_wrapper.hpp> 21 std::string iou_threshold_description(
float default_value);
22 std::string confidence_threshold_description(
float default_value);
24 void set_threshold_array_feature(CoreML::Specification::FeatureDescription* feature_desc,
25 std::string name, std::string short_description,
26 const std::vector<size_t>& shape,
float value);
28 void set_array_feature(CoreML::Specification::FeatureDescription* feature_desc, std::string name,
29 std::string short_description,
const std::vector<size_t>& shape);
42 neural_net::pipeline_spec pipeline,
size_t num_classes,
size_t num_predictions,
43 flex_list class_labels,
float confidence_threshold,
float iou_threshold,
44 bool include_non_maximum_suppression,
bool use_nms_layer,
bool use_most_confident_class);
48 const neural_net::model_spec& nn_spec,
size_t prediction_window,
49 const flex_list& features,
size_t lstm_hidden_layer_size,
54 const neural_net::model_spec& nn_spec,
size_t image_width,
55 size_t image_height,
bool include_flexible_shape,
56 std::string content_feature, std::string style_feature,
size_t num_styles);
60 const neural_net::model_spec& nn_spec,
const flex_list& features,
65 #endif // UNITY_TOOLKITS_COREML_EXPORT_NEURAL_NETS_MODELS_EXPORTER_HPP_ std::shared_ptr< coreml::MLModelWrapper > export_object_detector_model(neural_net::pipeline_spec pipeline, size_t num_classes, size_t num_predictions, flex_list class_labels, float confidence_threshold, float iou_threshold, bool include_non_maximum_suppression, bool use_nms_layer, bool use_most_confident_class)
std::shared_ptr< coreml::MLModelWrapper > export_drawing_classifier_model(const neural_net::model_spec &nn_spec, const flex_list &features, const flex_list &class_labels, const flex_string &target)
std::shared_ptr< coreml::MLModelWrapper > export_activity_classifier_model(const neural_net::model_spec &nn_spec, size_t prediction_window, const flex_list &features, size_t lstm_hidden_layer_size, const flex_list &class_labels, const flex_string &target)
std::shared_ptr< coreml::MLModelWrapper > export_style_transfer_model(const neural_net::model_spec &nn_spec, size_t image_width, size_t image_height, bool include_flexible_shape, std::string content_feature, std::string style_feature, size_t num_styles)
std::vector< flexible_type > flex_list