-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why RecursionLimit = 10
in OnnxTransformer
?
#5585
Comments
RecursionLimit = 10
?RecursionLimit = 10
in OnnxTransformer
?
Thanks for bringing this up. Let me discuss this with my team and see if we can figure out why we were setting this to 10. |
@michaelgsharp |
I'm having exactly the same problem with one my efficientdet-d1 custom object detection model by TensorFlow 2.4.1 (the same model built as SSD Mobile Net V2 doesn't have any problem). |
…a problem in ML.NET while reading onnx Models. See: dotnet/machinelearning#5585 (comment).
…#5796) * Raised the limit of recursions in the creation of the CodedInputStream in the OnnxTransformer (as the default value in the Google.Protobuf). Otherwise some models cannot be loaded (ex. TF2 Efficentdet). * Updated arcade to the latest version (#5783) * updated arcade to the latest version * updated eng/common correctly * Fixed benchmark test. * Use dotnet certificate (#5794) * Use dotnet certificate * Update 3.1 SDK Co-authored-by: Prashanth Govindarajan <[email protected]> Co-authored-by: Michael Sharp <[email protected]> * Arm build changes (#5789) * arm testing * initial commit with build working on arm64 * windows changes * build fixes for arm/arm64 with cross compilation * cross build instructions added * renamed arm to Arm. Changed TargetArchitecture to default to OS architecture * fixed some formatting * fixed capitilization * fixed Arm Capitilization * Fix cross-compilation if statement * building on apple silicon * removed non build related files * Changes from PR comments. Removal of FastTreeNative flag. * Changes from pr comments. * Fixes from PR comments. * Changed how we are excluding files. * Onnx load model (#5782) * fixed onnx temp model deleting * random file path fixed * updates from pr * Changes from PR comments. * Changed how auto ml caches. * PR fixes. * Update src/Microsoft.ML.AutoML/API/ExperimentSettings.cs Co-authored-by: Eric Erhardt <[email protected]> * Tensorflow fixes from PR comments * fixed filepath issues Co-authored-by: Eric Erhardt <[email protected]> Co-authored-by: Michael Sharp <[email protected]> Co-authored-by: Matt Mitchell <[email protected]> Co-authored-by: Prashanth Govindarajan <[email protected]> Co-authored-by: Eric Erhardt <[email protected]>
What is the purpose that
Google.Protobuf.CodedInputStream.RecursionLimit
is set10
at the following code?machinelearning/src/Microsoft.ML.OnnxTransformer/OnnxUtils.cs
Line 208 in 2a6cf9d
It is set
100
by default in protocol-buffers C#-wrapper.https://github.com/protocolbuffers/protobuf/blob/10599e6c8dde8a9875258e03054a696d53cadebd/csharp/src/Google.Protobuf/CodedInputStream.cs#L83
I could not load some network /
.onnx
file by the following exception be caused byRecursionLimit = 10
without the monkey-patchedMicrosoft.ML.OnnxTransformer.dll
.I think that the networks are including
Inception
construction especially.(ex. tensorflow/models`s Faster-RCNN-Inception-V2 converted)
Thank you for coding great tools!
The text was updated successfully, but these errors were encountered: