Skip to content

Commit

Permalink
Fix float input (blakeblackshear#14720)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Nov 1, 2024
1 parent 8c2c07f commit e5ebf93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frigate/object_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def detect_raw(self, tensor_input: np.ndarray):

if self.dtype == InputDTypeEnum.float:
tensor_input = tensor_input.astype(np.float32)
tensor_input /= 255

return self.detect_api.detect_raw(tensor_input=tensor_input)

Expand Down

0 comments on commit e5ebf93

Please sign in to comment.