Turi Create  4.0
style_transfer_model_definition.hpp
1 /* Copyright © 2019 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at
5  * https://opensource.org/licenses/BSD-3-Clause
6  */
7 
8 #ifndef __TOOLKITS_STYLE_TRANSFER_MODEL_DEFINITION_H_
9 #define __TOOLKITS_STYLE_TRANSFER_MODEL_DEFINITION_H_
10 
11 #include <memory>
12 #include <string>
13 
14 #include <ml/neural_net/model_spec.hpp>
15 
16 namespace turi {
17 namespace style_transfer {
18 
19 std::unique_ptr<neural_net::model_spec> init_resnet(const std::string& path);
20 std::unique_ptr<neural_net::model_spec> init_resnet(size_t num_styles,
21  int random_seed=0);
22 std::unique_ptr<neural_net::model_spec> init_resnet(const std::string& path,
23  size_t num_styles);
24 std::unique_ptr<neural_net::model_spec> init_vgg_16();
25 std::unique_ptr<neural_net::model_spec> init_vgg_16(const std::string& path);
26 
27 } // namespace style_transfer
28 } // namespace turi
29 
30 #endif