Open kaishijeng opened 5 years ago
@kaishijeng I'm not sure clearly where are used the operators of "infer_range" and "_arange" in my detection v1 model now. In fact, the detection v1 model is trained based on YOLOV3 code implemented by the official GluonCV. If you can port the official YOLOV3 model to TVM or can you try it firstly? My mode will also work if the official GluonCV YOLOV3 model can be ported rightly.
BTW, welcome to pull requests to share your TVM model for arm to this repo. :)
Try to use gluon to downdload yolo3_mobilenet1.0_voc below: model_zoo.get_model('yolo3_mobilenet1.0_voc', pretrained=True)
It has an error: of Pretrained model for yolo3_mobilenet1_0_voc is not available as below:
Traceback (most recent call last):
File "./demo_webcam.py", line 9, in
@kaishijeng
yolo3_mobilenet1_0_voc download url is: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/models/yolo3_mobilenet1.0_voc-3b47835a.zip
It's an official bug. I have opened an issue to fix it.
It works with your link. However, it has only .param and TVM needs network definition in .json so it can do the conversion
Thanks,
@kaishijeng
You can export the GluonCV format (.params contains net and param together) to MXNet format (model is divided into .json and *.params ) using the code: export_network.py
Thanks fo r the export_network.py.
Same error with yolo3_mobile1.0_voc in tvm as below; NotImplementedError: Operator: _arange is not supported in nnvm.
@kaishijeng So it seems that this problem needs to be solved by the official developers. You can open issues to the TVM and GluonCV community.
Good luck and look forward to feedback. :)
port the model to ncnn is ok
port the model to ncnn is ok
@aa12356jm Can you pull requests to share your nccn model for arm to this repo? :)
ok,i will do it tomorrow
Can you confirm what is the image size for 20ms/50 FPS metric calculation ?
Can you confirm what is the image size for 20ms/50 FPS metric calculation ?
Resize the image short edge to 256.
I attempted to port your trained model to TVM which is a good framework to speed up on arm device (like RK3399). Unfortunately, there are some operators in your model seem not supported in TVM.
"infer_range" and "_arange" are not supported in TVM. NotImplementedError: Operator: _arange is not supported in nnvm.
Can these 2 operators replaced by other operators?
Thanks.,