Post

Replies

Boosts

Views

Activity

VNTrajectoryObservation inconsistent observations
I have a pre-recorded video loaded into Xcode for testing and when I run the trajectory request on the video playing in the simulator the observations I get back are inconsistent and vary with every build and run. For example one session will produce no observations and the next time I run it will produce multiple observations. Are there any suggestions or tips to improving the consistency of the observations?
0
0
489
Jul ’21
Object Detection Model trained using Transfer Learning generates a lot of false positives
When I train an object detection model using transfer learning and use it in an app on the device I seem to get a lot of false positive predictions with extremely high confidence that I do not get when I train the same model as a full network model. For example, the model is looking for a shoe and it will generate a false positive on an image of a blank wall with a confidence of over 95%. Yet when I test the model and drag an image of the same wall into preview in Xcode it correctly classifies the image. In fact by simply moving the camera so it goes out of focus for a brief second always generates an incorrect prediction. Yet none of these issues are present when using the model trained using full network. I would prefer to use transfer learning until I am able to generate enough training data, So I have two questions. Is there a reason for this? Is there a way to prevent this?
0
0
609
May ’21
Hardware Setup for Training
I am trying to train an Object Detection Model using transfer learning with a small dataset ( roughly 650 Images and two classes ) using Create ML v2.0 (53.2.2) with prefer external GPU checked. I am using a 2018 Mac mini 3.2 ghz I7 16 gb of ram and AMD Radeon Pro 580 eGPU. The problem I am having is that I can only do about 3500 iterations before I run out of memory and I need to pause the training. When I resume training my Loss increases again and it takes a while for it to get back down to where it was before I paused. So I am wondering if there is a better way to setup the hardware or any other suggestions so I can get through all of the iterations without having to pause. I don't recall having this issue with Create ML v1.0, so any suggestions would be appreciated.
2
0
1k
Apr ’21
Action Classifier Annotations Error in Create ML
According to the Building an Action Classifier Data Source Article in the Create ML Documentation - https://developer.apple.com/documentation/createml/creating_an_action_classifier_model/building_an_action_classifier_data_source ,the start and end times can be a "A string of hours, minutes, and seconds, for example: 05:01:03", however when I load the training data into Create ML I get the following error " Unexpected value is not Double or Int in 'end' csv column". What I have in the CSV file is this video1.mp4,test_label,0:01:00,0:01:01 Is there a trick to getting this to work or can it only be a int or a double?
0
0
559
Mar ’21
VNDetectTrajectoriesRequest not returning any observations
I have a VNDetectTrajectoriesRequest private lazy var pathRequest: VNDetectTrajectoriesRequest = { return VNDetectTrajectoriesRequest(frameAnalysisSpacing: .zero, trajectoryLength: 5, completionHandler: trajectoryHandler)}() and the request handler inside the captureoutput for the camera like so. do {             try requestHandler.perform([pathRequest])         } catch {             print("Unable to perform the request: \(error).")         } When I run the app I see the completion handler get called 5 times with empty observations and then nothing . Even if a ball is rolled through the video being captured the completion handler never shows an observation. func trajectoryHandler(request: VNRequest, error: Error?) {         print("have trajectory observation")         guard let observations =                 request.results as? [VNTrajectoryObservation] else { return }         print(observations)     } Any thoughts on what might be going on?
3
0
812
Jun ’20
Auto Layout Struggles
I have a storyboard with a Stackview in a Stackview but cannot seem to get some of the fields to show up correctly. I have tried adjusting the Content Hugging and Compression values but adjusting those only pushes another field into the wrong position. I cannot seem to find the magic sauce to get it to work so any suggestions would be helpful.
2
0
650
Jun ’20