ytfeng commited on
Commit
7f28844
·
1 Parent(s): a4924f7

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. mp_handpose.py +2 -2
mp_handpose.py CHANGED
@@ -28,8 +28,8 @@ class MPHandPose:
28
  return self.__class__.__name__
29
 
30
  def setBackendAndTarget(self, backendId, targetId):
31
- self._backendId = backendId
32
- self._targetId = targetId
33
  self.model.setPreferableBackend(self.backend_id)
34
  self.model.setPreferableTarget(self.target_id)
35
 
 
28
  return self.__class__.__name__
29
 
30
  def setBackendAndTarget(self, backendId, targetId):
31
+ self.backend_id = backendId
32
+ self.target_id = targetId
33
  self.model.setPreferableBackend(self.backend_id)
34
  self.model.setPreferableTarget(self.target_id)
35