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

Question of implementation #45

Open
jack-chui opened this issue Dec 15, 2018 · 3 comments
Open

Question of implementation #45

jack-chui opened this issue Dec 15, 2018 · 3 comments

Comments

@jack-chui
Copy link

jack-chui commented Dec 15, 2018

Hi, I saw you implementation about Tiny YOLO in

YOLO-CoreML-MPSNNGraph/TinyYOLO-CoreML/TinyYOLO-CoreML/Helpers.swift

I modified some parameters without changing any main logic. However, I found that the confidence result on iPhone is significantly different with computer version.

I got 0.91 in computer version and 0.18 for iPhone version. Do you know what happen?
Computer version: https://github.com/thtrieu/darkflow

@hollance
Copy link
Owner

That is a really vague question... there is not enough information here to give an answer.

@jack-chui
Copy link
Author

jack-chui commented Dec 16, 2018

I saw your implementation which refer in the following link:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/src/org/tensorflow/demo/TensorFlowYoloDetector.java

But the offset calculation is different with the reference.
Your implementation determine channel -> y position -> x position
The reference code determine y position -> x position -> channel

What is the output sequence in Tiny YOLO features? Is that x, y, w, h, c?

@hollance
Copy link
Owner

In CoreML the output order is always channels, height, width. It does this automatically, which is why it is different from the reference code.

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