Closed HduHestin closed 3 months ago
Please remove https://github.com/k2-fsa/sherpa-onnx/blob/69347ffc8f299060a11e43cf6e194822b6356581/scripts/whisper/export-onnx.py#L104
and https://github.com/k2-fsa/sherpa-onnx/blob/69347ffc8f299060a11e43cf6e194822b6356581/scripts/whisper/export-onnx.py#L416-L420 and https://github.com/k2-fsa/sherpa-onnx/blob/69347ffc8f299060a11e43cf6e194822b6356581/scripts/whisper/export-onnx.py#L540-L546
And retry.
Thanks for your attention. i find a part is distinct. I check my yolov8-pose which successfully use rknn,and i open the verbose when init rknn_runtime, you can see firstlayer all information is complete. but in whisper the first layer DataFormat is missing. I don't know whether this causes Aborted.
yolov8-pose verbose: Netron show:
whisper verbose: whisper Netron show:
whisper uses a 3-d input, not a 4-d.
Yes , i use a random np.ndarry with shape:(1,80,3000) to test rknn, actually still aborted. i'm thinking whether the "DataFormat" int first line causes abort.
Please try to convert the model layer by layer and also debug it layer by layer.
This is issue is out of scope of sherpa-onnx.
Is the problem solved?
Hello,there! i have looked the
https://github.com/k2-fsa/sherpa-onnx/blob/master/scripts/whisper/export-onnx.py
it's a nice try to use whisper model in different platform by using ONNX format. I'm trying to convert it to rknn format(a model type in RKs device) to use rknpu. But i meet some obstacles.1.I use the export-onnx.py export encoder and decoder successfully.
2.I try to build a script to convert onnx to rknn. By netron i can see the structure of onnx. The input seems to be a dynamic shape.[n_audio,80,T],So i use dynamic_input in exporting rknn(code below),Then i successfully export it(encoder.rknn). But when i run it in RK3568 device ,somethings go wrong. Do you have interest in convert to rknn? Hope you can give me some advice.
rknn.py: