YOLO-CoreML-MPSNNGraph icon indicating copy to clipboard operation
YOLO-CoreML-MPSNNGraph copied to clipboard

Question of implementation

Open jack-chui opened this issue 7 years ago • 3 comments

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

jack-chui avatar Dec 15 '18 14:12 jack-chui

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

hollance avatar Dec 15 '18 17:12 hollance

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?

jack-chui avatar Dec 16 '18 04:12 jack-chui

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

hollance avatar Dec 16 '18 09:12 hollance