bit-bots / YOEO

YouOnlyEncodeOnce - A CNN for Embedded Object Detection and Semantic Segmentation
GNU General Public License v3.0
22 stars 4 forks source link

Return class index as uint8 not int64 #35

Closed Flova closed 2 years ago

Flova commented 2 years ago

It would be nice to return the class index of the segmentation as an unit8 for performance reasons. This should lower USB copy times from NCS2 and improve overall performance, as well as simplify the code in the bitbots_vision.

Proposed change

Add an uint8 typecast to the following line. https://github.com/bit-bots/YOEO/blob/cb5f2820102271ab00d6ed914faa2c90e1d59644/yoeo/models.py#L182