JeVoisBase  1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
ppresnet.PPResNet Class Reference

Public Member Functions

 __init__ (self, modelPath, labelPath, backendId=0, targetId=0)
 
 name (self)
 
 setBackend (self, backend_id)
 
 setTarget (self, target_id)
 
 infer (self, image)
 

Protected Member Functions

 _load_labels (self)
 
 _preprocess (self, image)
 
 _postprocess (self, outputBlob)
 

Protected Attributes

 _modelPath
 
 _labelPath
 
 _backendId
 
 _targetId
 
 _model
 
 _inputNames
 
 _outputNames
 
 _inputSize
 
 _mean
 
 _std
 
 _labels
 

Detailed Description

Definition at line 11 of file ppresnet.py.

Constructor & Destructor Documentation

◆ __init__()

ppresnet.PPResNet.__init__ (   self,
  modelPath,
  labelPath,
  backendId = 0,
  targetId = 0 
)

Definition at line 12 of file ppresnet.py.

Member Function Documentation

◆ _load_labels()

ppresnet.PPResNet._load_labels (   self)
protected

Definition at line 31 of file ppresnet.py.

References ppresnet.PPResNet._labelPath.

◆ _postprocess()

◆ _preprocess()

◆ infer()

◆ name()

ppresnet.PPResNet.name (   self)

Definition at line 39 of file ppresnet.py.

◆ setBackend()

◆ setTarget()

Member Data Documentation

◆ _backendId

◆ _inputNames

ppresnet.PPResNet._inputNames
protected

Definition at line 22 of file ppresnet.py.

Referenced by pphumanseg.PPHumanSeg.infer(), and ppresnet.PPResNet.infer().

◆ _inputSize

◆ _labelPath

ppresnet.PPResNet._labelPath
protected

Definition at line 14 of file ppresnet.py.

Referenced by ppresnet.PPResNet._load_labels().

◆ _labels

ppresnet.PPResNet._labels
protected

◆ _mean

ppresnet.PPResNet._mean
protected

◆ _model

◆ _modelPath

ppresnet.PPResNet._modelPath
protected

◆ _outputNames

ppresnet.PPResNet._outputNames
protected

Definition at line 23 of file ppresnet.py.

Referenced by pphumanseg.PPHumanSeg.infer(), and ppresnet.PPResNet.infer().

◆ _std

ppresnet.PPResNet._std
protected

◆ _targetId


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