hailo-ai / Hailo-Application-Code-Examples

MIT License
58 stars 33 forks source link

Is python instance_segmenation example is FP32 ? #252

Closed dongxuanlb closed 4 months ago

dongxuanlb commented 4 months ago

I plan to write a c++ post-processor version of fastSam. I found that there is an implementation under the python package, and it seems that the difference from yolov8seg is the number of categories.

But the strange thing is that when I use hef in the python package, yolov8seg (my own C++ implementation) infers correctly, but fastsam fails.

I later noticed:

input_vstreams_params = InputVStreamParams.make_from_network_group(network_group, quantized=False, format_type=FormatType.FLOAT32)
output_vstreams_params = OutputVStreamParams.make_from_network_group(network_group, quantized=False, format_type=FormatType.FLOAT32)

Is the model used in this python fp32?