Skip to content

Commit

Permalink
Update edgetpumodel.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfis authored Mar 23, 2024
1 parent 1f53bca commit 43b9a69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions edgetpumodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ def forward(self, x:np.ndarray, with_nms=True) -> np.ndarray:

# Scale output
result = (common.output_tensor(self.interpreter, 0).astype('float32') - self.output_zero) * self.output_scale
if self.v8:
result = np.transpose(result)

self.inference_time = time.time() - tstart

if with_nms:
Expand Down

0 comments on commit 43b9a69

Please sign in to comment.