Closed riverar closed 6 years ago
Unfortunately, for this specific model (Fast-RCNN), the CNTK implementation uses some custom code that isn’t exportable to ONNX :(
Is it the same as #2989 ? Combine is not supported in ONNX. Can you try export without combine? However, Fast-RCNN relies on NMS python modules that may not available in ONNX as @serenaz mentioned. @spandantiwari may have info on ONNX support for NMS in Fast-RCNN.
As @serenaz said, we have custom python code in Fast and Faster R-CNN that need to be ported to C++, in addition we need to add TopK ONNX support.
That's correct. Fast and FasterRCNN use custom Python code (UDFs) that are need to be ported to CNTK/ONNX ops fully before it can be exported to ONNX. We will let you know when the models are ready for ONNX export.
@spandantiwari I don't think it's appropriate to close this issue until Fast(er)RCNN support ONNX export.
@riverar There have been multiple requests for this and related work. They will be tracked by https://github.com/Microsoft/CNTK/issues/3052.
@spandantiwari Great, thanks. Will keep an eye on that. It's a little weird you opened a new issue instead of simply using this one.
I'm trying to go down the WinML route, so I made a change to
fasterRCNN_train.py
to spit out ONNX modelseval_model.save(model_path, format=cntk.ModelFormat.ONNX)
. The CNTK, however, throws an exception:What's the guidance for getting this model into WinML?