Skip to content
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

An issue on demo.cpp #6

Open
MyChusterChuster opened this issue Nov 14, 2020 · 2 comments
Open

An issue on demo.cpp #6

MyChusterChuster opened this issue Nov 14, 2020 · 2 comments

Comments

@MyChusterChuster
Copy link

First of all, thanks for sharing the code publicly, thanks for share a c++ code with tensorflow. I was working on codes with OpenCV, Tensorflow and many vision libs and i saw in your code the score is focusing on num_detections instead of "score outputs".

In the line
float score = expit(nums[count]); // How has this to be done?

where nums came from num_detections, this should have been from output scores like:
scores = interpreter->tensor(interpreter->outputs()[2]);
auto scrs = scores->data.f;

In this position, interpreter gives you "the score outputs" and then this line would change to:
float score = expit(scrs[count]);

After all these changes, we can see how expit function has make more sense values. I hope this helps you.

@finnickniu
Copy link
Owner

Thanks for your kind interpretation, learned a lot!

@MyChusterChuster
Copy link
Author

Ive been working on a thesis and i want to know if you can let me some part of code of demo.cpp (specifically in object detection) putting GLP or Open Source license on it. Only if you want.

Thanks in advance. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants