Skip to content

Commit bc9fbe1

Browse files
committed
Keep as float
1 parent d840b81 commit bc9fbe1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/modules/ObjectDetectionCoral/tpu_runner.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ def _resize_and_chop_tiles(self,
11511151
image.thumbnail((resamp_x, resamp_y), Image.LANCZOS)
11521152

11531153
# Rescale the input from uint8
1154-
input_zero = self.input_details['quantization'][1]
1154+
input_zero = float(self.input_details['quantization'][1])
11551155
input_scale = 1.0 / (255.0 * self.input_details['quantization'][0])
11561156

11571157
# It'd be useful to print this once at the beginning of the run

0 commit comments

Comments
 (0)