import nndeploy._nndeploy_internal as _C
import nndeploy.base
import nndeploy.device
import nndeploy.op
import nndeploy.dag
ConvertToParam = _C.preprocess.ConvertToParam
[文档]class ConvertTo(_C.preprocess.ConvertTo):
[文档] def __init__(self, name: str, inputs: list[nndeploy.dag.Edge] = [], outputs: list[nndeploy.dag.Edge] = []):
if inputs is [] and outputs is []:
super().__init__(name)
else:
super().__init__(name, inputs, outputs)
[文档] def run(self):
return super().run()
[文档]class CvtNormTrans(_C.preprocess.CvtNormTrans):
[文档] def __init__(self, name: str, inputs: list[nndeploy.dag.Edge] = [], outputs: list[nndeploy.dag.Edge] = []):
if inputs is [] and outputs is []:
super().__init__(name)
else:
super().__init__(name, inputs, outputs)
[文档] def run(self):
return super().run()
[文档]class CvtResizeCropNormTrans(_C.preprocess.CvtResizeCropNormTrans):
[文档] def __init__(self, name: str, inputs: list[nndeploy.dag.Edge] = [], outputs: list[nndeploy.dag.Edge] = []):
if inputs is [] and outputs is []:
super().__init__(name)
else:
super().__init__(name, inputs, outputs)
[文档] def run(self):
return super().run()
[文档]class CvtResizePadNormTrans(_C.preprocess.CvtResizePadNormTrans):
[文档] def __init__(self, name: str, inputs: list[nndeploy.dag.Edge] = [], outputs: list[nndeploy.dag.Edge] = []):
if inputs is [] and outputs is []:
super().__init__(name)
else:
super().__init__(name, inputs, outputs)
[文档] def run(self):
return super().run()
[文档]class CvtResizeNormTrans(_C.preprocess.CvtResizeNormTrans):
[文档] def __init__(self, name: str, inputs: list[nndeploy.dag.Edge] = [], outputs: list[nndeploy.dag.Edge] = []):
if inputs is [] and outputs is []:
super().__init__(name)
else:
super().__init__(name, inputs, outputs)
[文档] def run(self):
return super().run()
[文档]class BatchPreprocess(_C.preprocess.BatchPreprocess):
[文档] def __init__(self, name: str, inputs: list[nndeploy.dag.Edge] = [], outputs: list[nndeploy.dag.Edge] = []):
if inputs is [] and outputs is []:
super().__init__(name)
else:
super().__init__(name, inputs, outputs)
[文档] def set_node_key(self, key: str):
return super().set_node_key(key)
[文档] def set_param(self, param):
return super().set_param(param)
[文档] def get_param(self):
return super().get_param()
[文档] def run(self):
return super().run()
[文档] def serialize(self):
return super().serialize()
[文档] def deserialize(self, json_str):
return super().deserialize(json_str)