JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Simple DNN network running on NPU and invoked from the Khadas KSNN library in python. More...
Public Member Functions | |
__init__ (self) | |
[Optional] Constructor | |
init (self) | |
[Optional] JeVois parameters initialization | |
freeze (self, doit) | |
[Optional] Freeze some parameters that should not be changed at runtime | |
load (self) | |
[Required] Load the network from disk | |
process (self, blobs) | |
[Required] Main processing function: process input blobs through network and return output blobs blobs is a list of numpy arrays for the network's outputs Should return a tuple with (list of output blobs, list of info strings), where the info strings could contain some information about the network | |
Public Attributes | |
net | |
dataroot | |
model | |
library | |
intensors | |
Simple DNN network running on NPU and invoked from the Khadas KSNN library in python.
Definition at line 24 of file PyNetKSNN.py.
PyNetKSNN.PyNetKSNN.__init__ | ( | self | ) |
[Optional] Constructor
Definition at line 27 of file PyNetKSNN.py.
PyNetKSNN.PyNetKSNN.freeze | ( | self, | |
doit | |||
) |
[Optional] Freeze some parameters that should not be changed at runtime
Definition at line 58 of file PyNetKSNN.py.
References PyNetKSNN.PyNetKSNN.dataroot, PyNetOpenCV.PyNetOpenCV.dataroot, PyNetORT.PyNetORT.dataroot, PyNetURetinex.PyNetURetinex.dataroot, PyNetKSNN.PyNetKSNN.freeze(), PyNetKSNN.PyNetKSNN.intensors, PyNetOpenCV.PyNetOpenCV.intensors, PyNetORT.PyNetORT.intensors, PyNetURetinex.PyNetURetinex.intensors, TensorFlow.model, mobilenet_v1.MobileNetV1.model, mobilenet_v2.MobileNetV2.model, lpd_yunet.LPD_YuNet.model, mp_palmdet.MPPalmDet.model, PyNetKSNN.PyNetKSNN.model, PyNetOpenCV.PyNetOpenCV.model, PyNetORT.PyNetORT.model, PyNetURetinex.PyNetURetinex.model, PyClassificationDNN.PyClassificationDNN.model, PyCoralClassify.PyCoralClassify.model, PyCoralDetect.PyCoralDetect.model, PyCoralSegment.PyCoralSegment.model, PyDetectionDNN.PyDetectionDNN.model, PyEmotion.PyEmotion.model, and PyLicensePlate.PyLicensePlate.model.
Referenced by PyNetKSNN.PyNetKSNN.freeze().
PyNetKSNN.PyNetKSNN.init | ( | self | ) |
[Optional] JeVois parameters initialization
Definition at line 32 of file PyNetKSNN.py.
PyNetKSNN.PyNetKSNN.load | ( | self | ) |
[Required] Load the network from disk
Definition at line 65 of file PyNetKSNN.py.
References PyNetKSNN.PyNetKSNN.dataroot, PyNetOpenCV.PyNetOpenCV.dataroot, PyNetORT.PyNetORT.dataroot, PyNetURetinex.PyNetURetinex.dataroot, PyNetKSNN.PyNetKSNN.library, TensorFlow.model, mobilenet_v1.MobileNetV1.model, mobilenet_v2.MobileNetV2.model, lpd_yunet.LPD_YuNet.model, mp_palmdet.MPPalmDet.model, PyNetKSNN.PyNetKSNN.model, PyNetOpenCV.PyNetOpenCV.model, PyNetORT.PyNetORT.model, PyNetURetinex.PyNetURetinex.model, PyClassificationDNN.PyClassificationDNN.model, PyCoralClassify.PyCoralClassify.model, PyCoralDetect.PyCoralDetect.model, PyCoralSegment.PyCoralSegment.model, PyDetectionDNN.PyDetectionDNN.model, PyEmotion.PyEmotion.model, PyLicensePlate.PyLicensePlate.model, Darknet.net, Yolo.net, ObjectRecognition< NetType >.net, ObjectRecognition< tiny_dnn::sequential >.net, PyNetKSNN.PyNetKSNN.net, PyNetOpenCV.PyNetOpenCV.net, PyClassificationDNN.PyClassificationDNN.net, PyDetectionDNN.PyDetectionDNN.net, and PyEmotion.PyEmotion.net.
PyNetKSNN.PyNetKSNN.process | ( | self, | |
blobs | |||
) |
[Required] Main processing function: process input blobs through network and return output blobs blobs is a list of numpy arrays for the network's outputs Should return a tuple with (list of output blobs, list of info strings), where the info strings could contain some information about the network
Definition at line 76 of file PyNetKSNN.py.
References PyNetORT.PyNetORT.inputs, PyNetURetinex.PyNetURetinex.inputs, Darknet.net, Yolo.net, ObjectRecognition< tiny_dnn::sequential >.net, ObjectRecognition< NetType >.net, PyNetKSNN.PyNetKSNN.net, PyNetOpenCV.PyNetOpenCV.net, PyClassificationDNN.PyClassificationDNN.net, PyDetectionDNN.PyDetectionDNN.net, and PyEmotion.PyEmotion.net.
PyNetKSNN.PyNetKSNN.dataroot |
Definition at line 35 of file PyNetKSNN.py.
Referenced by PyNetKSNN.PyNetKSNN.freeze(), PyNetOpenCV.PyNetOpenCV.freeze(), PyNetORT.PyNetORT.freeze(), PyNetURetinex.PyNetURetinex.freeze(), PyNetKSNN.PyNetKSNN.load(), PyNetOpenCV.PyNetOpenCV.load(), PyNetORT.PyNetORT.load(), and PyNetURetinex.PyNetURetinex.load().
PyNetKSNN.PyNetKSNN.intensors |
Definition at line 52 of file PyNetKSNN.py.
Referenced by PyNetKSNN.PyNetKSNN.freeze(), PyNetOpenCV.PyNetOpenCV.freeze(), PyNetORT.PyNetORT.freeze(), and PyNetURetinex.PyNetURetinex.freeze().
PyNetKSNN.PyNetKSNN.library |
Definition at line 44 of file PyNetKSNN.py.
Referenced by PyNetKSNN.PyNetKSNN.load().
PyNetKSNN.PyNetKSNN.model |
Definition at line 39 of file PyNetKSNN.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), PyNetKSNN.PyNetKSNN.freeze(), PyNetOpenCV.PyNetOpenCV.freeze(), PyNetORT.PyNetORT.freeze(), PyNetURetinex.PyNetURetinex.freeze(), mobilenet_v1.MobileNetV1.infer(), mobilenet_v2.MobileNetV2.infer(), lpd_yunet.LPD_YuNet.infer(), mp_palmdet.MPPalmDet.infer(), PyNetKSNN.PyNetKSNN.load(), PyNetOpenCV.PyNetOpenCV.load(), PyNetORT.PyNetORT.load(), PyNetURetinex.PyNetURetinex.load(), PyClassificationDNN.PyClassificationDNN.process(), PyCoralClassify.PyCoralClassify.process(), PyCoralDetect.PyCoralDetect.process(), PyCoralSegment.PyCoralSegment.process(), PyDetectionDNN.PyDetectionDNN.process(), PyCoralClassify.PyCoralClassify.processGUI(), PyCoralDetect.PyCoralDetect.processGUI(), PyCoralSegment.PyCoralSegment.processGUI(), PyLicensePlate.PyLicensePlate.processGUI(), mobilenet_v1.MobileNetV1.setBackend(), mobilenet_v2.MobileNetV2.setBackend(), lpd_yunet.LPD_YuNet.setBackend(), mp_palmdet.MPPalmDet.setBackend(), mobilenet_v1.MobileNetV1.setTarget(), mobilenet_v2.MobileNetV2.setTarget(), lpd_yunet.LPD_YuNet.setTarget(), and mp_palmdet.MPPalmDet.setTarget().
PyNetKSNN.PyNetKSNN.net |
Definition at line 28 of file PyNetKSNN.py.
Referenced by PyNetKSNN.PyNetKSNN.load(), PyNetOpenCV.PyNetOpenCV.load(), PyDetectionDNN.PyDetectionDNN.postprocess(), PyNetKSNN.PyNetKSNN.process(), PyNetOpenCV.PyNetOpenCV.process(), PyClassificationDNN.PyClassificationDNN.process(), and PyDetectionDNN.PyDetectionDNN.process().