plugin  0.1.0
Public Member Functions | Protected Member Functions | List of all members
StyleTransferModel Class Reference
Inheritance diagram for StyleTransferModel:
Inheritance graph
[legend]
Collaboration diagram for StyleTransferModel:
Collaboration graph
[legend]

Public Member Functions

 StyleTransferModel (const std::string &modelFileName, const std::string &layout="")
 
std::unique_ptr< ResultBasepostprocess (InferenceResult &infResult) override
 
- Public Member Functions inherited from ImageModel
 ImageModel (const std::string &modelFileName, bool useAutoResize, const std::string &layout="")
 
std::shared_ptr< InternalModelDatapreprocess (const InputData &inputData, ov::InferRequest &request) override
 
- Public Member Functions inherited from ModelBase
 ModelBase (const std::string &modelFileName, const std::string &layout="")
 
virtual ov::CompiledModel compileModel (const ModelConfig &config, ov::Core &core)
 
virtual void onLoadCompleted (const std::vector< ov::InferRequest > &requests)
 
const std::vector< std::string > & getOutputsNames () const
 
const std::vector< std::string > & getInputsNames () const
 
std::string getModelFileName ()
 
void setInputsPreprocessing (bool reverseInputChannels, const std::string &meanValues, const std::string &scaleValues)
 

Protected Member Functions

void prepareInputsOutputs (std::shared_ptr< ov::Model > &model) override
 
- Protected Member Functions inherited from ModelBase
virtual void setBatch (std::shared_ptr< ov::Model > &model)
 
std::shared_ptr< ov::Model > prepareModel (ov::Core &core)
 
ov::Layout getInputLayout (const ov::Output< ov::Node > &input)
 

Additional Inherited Members

- Protected Attributes inherited from ImageModel
bool useAutoResize
 
size_t netInputHeight = 0
 
size_t netInputWidth = 0
 
cv::InterpolationFlags interpolationMode = cv::INTER_LINEAR
 
RESIZE_MODE resizeMode = RESIZE_FILL
 
- Protected Attributes inherited from ModelBase
InputTransform inputTransform = InputTransform()
 
std::vector< std::string > inputsNames
 
std::vector< std::string > outputsNames
 
ov::CompiledModel compiledModel
 
std::string modelFileName
 
ModelConfig config = {}
 
std::map< std::string, ov::Layout > inputsLayouts
 

Constructor & Destructor Documentation

◆ StyleTransferModel()

StyleTransferModel::StyleTransferModel ( const std::string &  modelFileName,
const std::string &  layout = "" 
)

Constructor

Parameters
modelFileNamename of model to load
layout- model input layout

The documentation for this class was generated from the following files: