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
How to set parameters for calculators? #38
Comments
I'm not sure how I can help with this. I assume you got these 2 proto files in the original mediapipe repository? Because they're not in MediaPipe.NET.Runtime. You might wanna take a look into that repo, since the source of the bindings in C++ are there, it might give you a clue. If you think you can contribute in this area, we'd appreciate your help :) |
@lubagov I think this is related to protocolbuffers/protobuf#9591. P.S. |
Thank you @homuler ! I haven't tested it, but it actually seems to be a Protobuf bug. I tried with C++ application. I also tried saving it in a Python application. Both the C++ and Python versions have no problem, and read Protobuf and extensions well. Yes, the size is actually 21732 bytes, but in the C # implementation it turns out to be larger. As a result, I saved the graph in Python and added the graph loading code from the binary file to Mediapipe.Net:
And for now this is a good temporary solution. Anyway, it works. |
I see. I guess it is time to update the dependency in |
Hello @lubagov, please let us know if the current revision solves your issue. |
Since there is no activity on this issue, I'll be closing this of now. |
Hello!
I have create grpah from pbtxt file, and try to modify calculator parameters in this graph, to change thresholds for BlazePose. I use branch fix-side-packets for my experiments. I generate the missing files from Protobuf.
In proto files, append namespace:
and next run:
i have attach generated files: CalculatorOptions.zip
Output in console:
Those. the size of the graph has become smaller, in the version that went to Mediapipe.Runtime and returned back. We've lost extension options.
Another interesting point, is if I want to get values from an extension, I can only get it from the original graph, but not copies (even can't do it from byte array copy with same size). From any copy, this returns null.
And in principle, these changes do not affect the result of the pipeline in any way. those. with a value of 0.99 I shouldn't have any detections at all. But they are exactly the same as before.
Thank you!
The text was updated successfully, but these errors were encountered: