ytfeng commited on
Commit
f41989a
·
1 Parent(s): e6af279

Refactor benchmark (#148)

Browse files

* use mean as default for benchmark metric; change result representation;
add --all for benchmarking all configs at a time

* fix comments

* add --model_exclude

* pretty print

* improve benchmark result table header: from band-xpu to xpu-band

* suppress print message

* update benchmark results on CPU-RPI

* add the new benchmark results on the new intel cpu

* fix backend and target setting in benchmark; pre-modify the names of int8 quantized models

* add results on jetson cpu

* add cuda results

* print target and backend when using --all

* add results on Khadas VIM3

* pretty print results

* true pretty print results

* update results in new format

* fix broken backend and target vars

* fix broken backend and target vars

* fix broken backend and target var

* update benchmark results on many devices

* add db results on Ascend-310

* update info on CPU-INTEL

* update usage of the new benchmark script

Files changed (1) hide show
  1. nanodet.py +2 -2
nanodet.py CHANGED
@@ -38,8 +38,8 @@ class NanoDet:
38
  return self.__class__.__name__
39
 
40
  def setBackendAndTarget(self, backendId, targetId):
41
- self._backendId = backendId
42
- self._targetId = targetId
43
  self.net.setPreferableBackend(self.backend_id)
44
  self.net.setPreferableTarget(self.target_id)
45
 
 
38
  return self.__class__.__name__
39
 
40
  def setBackendAndTarget(self, backendId, targetId):
41
+ self.backend_id = backendId
42
+ self.target_id = targetId
43
  self.net.setPreferableBackend(self.backend_id)
44
  self.net.setPreferableTarget(self.target_id)
45