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 0a2529e commit b59317a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edgetpumodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ 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)
result = np.transpose(result,[0,2,1])

self.inference_time = time.time() - tstart

Expand Down

0 comments on commit b59317a

Please sign in to comment.