Centernet: Provide ONNX models where possible

Created on 11 Jul 2019  路  12Comments  路  Source: xingyizhou/CenterNet

Can you please provide ONNX models of those network that are possible to export to ONNX? It seems to me that at least some variants of CenterNet for object detection should not contain any special operations that could not be exported to ONNX, so it seems doable. However, it seems that multiple people (including myself) have tried to load the models available here and export them to ONNX and failed.

My attempts failed at loading models due to unwanted dependencies in the code base. I tried to import a single detector (CtdetDetector) but failed because importing that model depends on all other models in the code, which require cuda (I don't even have cuda GPU) and external nms op to be compiled, which is not required for this detector network as far as I understand.

All 12 comments

I honestly don't know what ONNX is and don't have a good motivation to learn this ...

ONNX is a format for exporting your models so that others can use it outside of PyTorch as well. I believe that should be a good enough motivation, you probably want your research to be accessible to others as well. In the present format, your models cannot even easily be loaded in PyTorch as I explained above.

It is also partially related to JIT/Torchscript your models.

Just change the ouput of the network from dict to list, then it will work(without deformable conv)

@Markusgami How do u remove these deformable conv?

don't have a good motivation to learn this ..

making an open neural network model which can be used across all frameworks is enough of a motivation

I found there were people already done this, by exporting centernet to onnx

I found there were people already done this, by exporting centernet to onnx

can you give the link?

http://manaai.cn/aicodes_detail3.html?id=49 They have also accelerated centernet using TensorRT

http://manaai.cn/aicodes_detail3.html?id=49 They have also accelerated centernet using TensorRT

How to access mana ai code outside china?

There will be always engineering people in the industrial society do the onnx converting, I agree to have the author focus on the research that he is good at (and that's reason why pytorch exists)

Here a example of conversion of CenterNet in ONNX:
https://github.com/CaoWGG/TensorRT-CenterNet

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chwong1 picture chwong1  路  4Comments

zjp99 picture zjp99  路  4Comments

wjx2 picture wjx2  路  7Comments

merckxiaan picture merckxiaan  路  7Comments

ycxxn picture ycxxn  路  3Comments