Convert onnx to ncnn with python?

disho6za  于 4个月前  发布在  Python
关注(0)|答案(7)|浏览(47)

detail | 详细描述 | 詳細な説明

Hi,

Is there a way to convert an ONNX model to NCNN with python? I see no good examples anywhere on the internet and the onnx2ncnn from this repo is c++

My ultimate goal is to be able to pogrammaically convert pytorch models to ncnn, so using convertmodel.com is not something I can use as I want to do it through code

Do you have any suggestions?

Thank you

ecfsfe2w

ecfsfe2w2#

As I stated previously, my goal is to be able to convert in python code. My end goal is to be able to have a user be able to select a pytorch model, and if they do not have an Nvidia GPU my code can just convert the model to ncnn automatically (through ONNX) and use that instead. I cannot do this if I have to make my users go to convertmodel.com.

sf6xfgos

sf6xfgos3#

@joeyballentine Four months have passed, do u find the solution ?

j0pj023g

j0pj023g4#

@joeyballentine Four months have passed, do u find the solution ?

Yes, the solution is we are rewriting the entirety of onnx2ncnn in python. It's still in progress.

tyu7yeag

tyu7yeag5#

@joeyballentine Four months have passed, do u find the solution ?

Yes, the solution is we are rewriting the entirety of onnx2ncnn in python. It's still in progress.

👍 Good luck! Is it possible to share the onnx2ncnn python script by create a PR in this repo?

mwkjh3gx

mwkjh3gx6#

@joeyballentine Four months have passed, do u find the solution ?

Yes, the solution is we are rewriting the entirety of onnx2ncnn in python. It's still in progress.

👍 Good luck! Is it possible to share the onnx2ncnn python script by create a PR in this repo?

That's up to @theflyingzamboni as he's the one doing all the work on it, but I think he's just going to put it in its own separate repo

vhipe2zx

vhipe2zx7#

@joeyballentine Four months have passed, do u find the solution ?

Yes, the solution is we are rewriting the entirety of onnx2ncnn in python. It's still in progress.

+1 Good luck! Is it possible to share the onnx2ncnn python script by create a PR in this repo?

That's up to @theflyingzamboni as he's the one doing all the work on it, but I think he's just going to put it in its own separate repo

OK, Thanks!

相关问题