DetectorAppSwiftUI icon indicating copy to clipboard operation
DetectorAppSwiftUI copied to clipboard

Rects are drawn on some launches, not others

Open tapflora opened this issue 2 years ago • 3 comments

I have a weird intermittent issue where about half the time I launch the app (either through the debugger or off the phone) and the rectangles wouldn't show up. If it happens, I kill the app and restart and it would work, but restarting it again stops working.

I tried it with the yolov3 model in the example but also my own model, the behavior is the same. I will dig into it more and update on here.

Commit used: e7d39d7

tapflora avatar Jun 09 '23 20:06 tapflora

I have the same problem

dmjtian avatar Nov 03 '23 08:11 dmjtian

Hi all!. I had same issue, but I found the solution for this problem. The reason of this problem is that sublayers for displaying bounding boxes are added at Not main thread. To Fix this issue, you have to call self!.view.layer.addSublayer(self!.detectionLayer) at main thread. I submitted PR to fix this issue.

kadu-v avatar Nov 19 '23 09:11 kadu-v

DetectorAppSwiftUI/Detector.swift:45: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

arnaublanco avatar Feb 07 '24 11:02 arnaublanco