plugin  0.1.0
style_transfer_model.h
1 /*
2 // Copyright (C) 2021-2024 Intel Corporation
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writingb software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 */
16 
17 #pragma once
18 #include <memory>
19 #include <string>
20 
21 #include "models/image_model.h"
22 
23 namespace ov {
24 class InferRequest;
25 class Model;
26 } // namespace ov
27 struct InferenceResult;
28 struct InputData;
29 struct InternalModelData;
30 struct ResultBase;
31 
33 public:
37  StyleTransferModel(const std::string& modelFileName, const std::string& layout = "");
38 
39  std::unique_ptr<ResultBase> postprocess(InferenceResult& infResult) override;
40 
41 protected:
42  void prepareInputsOutputs(std::shared_ptr<ov::Model>& model) override;
43 };
Definition: image_model.h:32
Definition: style_transfer_model.h:32
StyleTransferModel(const std::string &modelFileName, const std::string &layout="")
Definition: style_transfer_model.cpp:37
Definition: results.h:53
Definition: input_data.h:20
Definition: internal_model_data.h:19
Definition: results.h:29