Custom python Post processing function in gstreamer performance issues

I saw in this post that.

But what I print out my raw_detections it shows something like this:

[[153, 155, 139, ..., 128, 126, 126],
 [141, 147, 145, ..., 121, 119, 121],
 [132, 143, 142, ..., 118, 116, 119],
 ...,
 [134, 144, 143, ..., 120, 119, 121],
 [139, 147, 143, ..., 123, 121, 123],
 [144, 149, 143, ..., 124, 122, 123]]]], dtype=uint8), 'yolov8s_bed/conv44': array([[[[0],

Could this be the issue? Are these supposed to be floats from 0 - 1?