[Bug Fix] Fix bugs when deploy quantized YOLOv5/v6/v7 model. (#729)

* Improve the usage of fastdeploy tools

* Fix quantized YOLOv5,v6 and v7 model deployment
This commit is contained in:
yunyaoXYY
2022-11-28 19:19:37 +08:00
committed by GitHub
parent 941057888a
commit dc2dad62a4
14 changed files with 12 additions and 32 deletions

View File

@@ -151,7 +151,6 @@ class YOLOv5(FastDeployModel):
# 初始化后的option保存在self._runtime_option
super(YOLOv5, self).__init__(runtime_option)
assert model_format == ModelFormat.ONNX, "YOLOv5 only support model format of ModelFormat.ONNX now."
self._model = C.vision.detection.YOLOv5(
model_file, params_file, self._runtime_option, model_format)
# 通过self.initialized判断整个模型的初始化是否成功