.tflite to .kmodel

Hello everyone,
I was trying to convert a .weight file downloaded from github to .kmodel file. Everything worked fine and now I have the .tflite file but I was getting stuck in here.
There is an error when I was trying to convert it to .kmodel file:

Fatal: Index was outside the bounds of the array.

I have checked that the author used 416x416 pixels images for training and I have also put some images with same size in the image file but it didn’t work. Is there anyway I can solve the problem?

Did you ever figure your issue out?
I had this issue with a model I trained myself, it seems the kendryte platform doesnt support some layer types

No, I haven’t found the solution yet.
It seems some layers are not supported and it has to be deleted before converting it into .kmodel file but I don’t know how to do

So I solved my problem, it was unrelated to yours I think, but I WOULD get the same error as you are getting if i had the wrong number of classes