{"action":"created","issue":{"url":"https://api.github.com/repos/hollance/YOLO-CoreML-MPSNNGraph/issues/39","repository_url":"https://api.github.com/repos/hollance/YOLO-CoreML-MPSNNGraph","labels_url":"https://api.github.com/repos/hollance/YOLO-CoreML-MPSNNGraph/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/hollance/YOLO-CoreML-MPSNNGraph/issues/39/comments","events_url":"https://api.github.com/repos/hollance/YOLO-CoreML-MPSNNGraph/issues/39/events","html_url":"https://github.com/hollance/YOLO-CoreML-MPSNNGraph/issues/39","id":358957821,"node_id":"MDU6SXNzdWUzNTg5NTc4MjE=","number":39,"title":"YOLOv3, tiny-YOLOv3, tiny-YOLOv2 weird bounding boxes on Iphone X","user":{"login":"TheXeniL","id":22363128,"node_id":"MDQ6VXNlcjIyMzYzMTI4","avatar_url":"https://avatars2.githubusercontent.com/u/22363128?v=4","gravatar_id":"","url":"https://api.github.com/users/TheXeniL","html_url":"https://github.com/TheXeniL","followers_url":"https://api.github.com/users/TheXeniL/followers","following_url":"https://api.github.com/users/TheXeniL/following{/other_user}","gists_url":"https://api.github.com/users/TheXeniL/gists{/gist_id}","starred_url":"https://api.github.com/users/TheXeniL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheXeniL/subscriptions","organizations_url":"https://api.github.com/users/TheXeniL/orgs","repos_url":"https://api.github.com/users/TheXeniL/repos","events_url":"https://api.github.com/users/TheXeniL/events{/privacy}","received_events_url":"https://api.github.com/users/TheXeniL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-11T09:17:21Z","updated_at":"2018-09-11T11:41:32Z","closed_at":null,"author_association":"NONE","body":"I'm having trouble with recognition of objects on iPhone X (and iPhone 6s as I tested it) using the YOLOv3-CoreML and YOLOv2-Coreml. Not changing anything in the code gives weird results as you can see in the picture below:\r\n![img_0047](https://user-images.githubusercontent.com/22363128/45350364-2f91f400-b5e6-11e8-899a-9728eafbf0aa.jpg)\r\n\r\nUsing the predict() function, it appears that iPhone X recognizes objects like the umbrella and others with 100% confidence and depicts bounding boxes as stripes. Changing confidenceThreshold and iouThreshold doesn't give any effect, as well as changing maxBoundingBoxes to 1-5. Using predictUsingVision does not produce any prediction at all on the screen.\r\n\r\nThe same problem I get with tiny-YOLOv3, YOLOv2 with custom and original models from Darknet using iPhone X.\r\n\r\nHowever, using the same code on iPhone 6 (not s) produce an absolutely opposite result. It can predict objects successfully (using predict() function) with my custom model and original Darknet models:\r\n![photo_2018-09-11_16-35-01](https://user-images.githubusercontent.com/22363128/45350398-4b959580-b5e6-11e8-986e-eb9569e2292e.jpg)\r\n\r\nI assumed that there is a problem with GPU changes Apple did start with iPhone 6s devices, but I haven't found any information about that. Does anybody have an issue like this? Did anybody try using the code on iPhone X device? I explicitly decided to test the code in the repository without any changes to provide a demonstration, the problem isn't about YOLOv3 or tiny-YOLOv3 or even YOLOv2 - the result is the same for me using any YOLO version.\r\n\r\nYou can find videos demonstrating the work on iPhone 6 and iPhone X:\r\n\r\niPhone X: https://imgur.com/a/EZOpr1W\r\n\r\niPhone 6: https://imgur.com/a/qQZtJAd\r\n\r\nI will appreciate any help and assumptions you can provide, but as far as I tried to solve the problem for two weeks I didn't get the result, I wonder if there a positive cases using the code on iPhone X by other people. I tested out using different kinds of YOLO models but was always using the same code basis provided by hollance. "},"comment":{"url":"https://api.github.com/repos/hollance/YOLO-CoreML-MPSNNGraph/issues/comments/420243804","html_url":"https://github.com/hollance/YOLO-CoreML-MPSNNGraph/issues/39#issuecomment-420243804","issue_url":"https://api.github.com/repos/hollance/YOLO-CoreML-MPSNNGraph/issues/39","id":420243804,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDI0MzgwNA==","user":{"login":"TheXeniL","id":22363128,"node_id":"MDQ6VXNlcjIyMzYzMTI4","avatar_url":"https://avatars2.githubusercontent.com/u/22363128?v=4","gravatar_id":"","url":"https://api.github.com/users/TheXeniL","html_url":"https://github.com/TheXeniL","followers_url":"https://api.github.com/users/TheXeniL/followers","following_url":"https://api.github.com/users/TheXeniL/following{/other_user}","gists_url":"https://api.github.com/users/TheXeniL/gists{/gist_id}","starred_url":"https://api.github.com/users/TheXeniL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheXeniL/subscriptions","organizations_url":"https://api.github.com/users/TheXeniL/orgs","repos_url":"https://api.github.com/users/TheXeniL/repos","events_url":"https://api.github.com/users/TheXeniL/events{/privacy}","received_events_url":"https://api.github.com/users/TheXeniL/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T11:41:32Z","updated_at":"2018-09-11T11:41:32Z","author_association":"NONE","body":"For iPhone 6 I tested both iOS 11.4 and currently testing it on iOS 12 beta. For iPhone X I tested it on 11.3 and 11.4 as well.\r\n\r\nI can try installing iOS 12 beta on iPhone X and check if it's going to work any better, still a shame if the problem can be about the iOS version because I need to support iOS 11+ for the project.\r\n"}}
{"actor":{"display_login":"TheXeniL"}}