Why my pytorch model gives out of ranges classes after convert into tflite

I am using yolov8 and classes is 4. but after converting into tflite then tflite gives classes like 21 ,15 , 14 etc

@Unknown_EE6,

Welcome to the Tensorflow Forum!

It is very difficult to troubleshoot the problem without any code.

Could you please share a simple standalone code to reproduce the above error?

Thank you!