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

Warning when using MLVision #35

Closed
fabdurso opened this issue Mar 9, 2020 · 4 comments
Closed

Warning when using MLVision #35

fabdurso opened this issue Mar 9, 2020 · 4 comments
Labels

Comments

@fabdurso
Copy link

fabdurso commented Mar 9, 2020

Code:

let vision = Vision.vision()
let options = VisionFaceDetectorOptions()
options.contourMode = .all
options.performanceMode = .accurate
let faceDetector = vision.faceDetector(options: options)

let image = VisionImage(image: $0)
faceDetector.process(image) { faces, error in
  guard error == nil, let faces = faces, !faces.isEmpty else { return }
  for face in faces {
    if face.contour(ofType: .face) != nil {
      // do something
    }
  }
}

Xcode warning:

+[FBMLx_CCTClearcutUploader crashIfNecessary] Multiple instances of CCTClearcutUploader were instantiated. Multiple uploaders function correctly but have an adverse affect on battery performance due to lock contention.

@morganchen12
Copy link

Are there any duplicate class errors printed to console?

@morganchen12 morganchen12 self-assigned this Mar 9, 2020
@fabdurso
Copy link
Author

fabdurso commented Mar 9, 2020

@morganchen12 nope.
The weird thing is that the message is appearing twice, and in behind the TensorFlow initializer.

+[FBMLx_CCTClearcutUploader crashIfNecessary] Multiple instances of CCTClearcutUploader were instantiated. Multiple uploaders function correctly but have an adverse affect on battery performance due to lock contention.
Initialized TensorFlow Lite runtime.
+[FBMLx_CCTClearcutUploader crashIfNecessary] Multiple instances of CCTClearcutUploader were instantiated. Multiple uploaders function correctly but have an adverse affect on battery performance due to lock contention.

@morganchen12
Copy link

The message appearing twice is normal, since each CCTClearcutUploader instance will report that a second one is running. Is this reproducible with the sample in this repository?

@ulukaya ulukaya transferred this issue from firebase/quickstart-ios Jun 30, 2020
@ulukaya ulukaya transferred this issue from another repository Jun 30, 2020
@calren calren added the ios label Jul 20, 2020
@morganchen12 morganchen12 removed their assignment Jul 20, 2020
@cs-googler
Copy link

Hi, we made some changes to Firebase ML Kit to better distinguish the on-device APIs from cloud based APIs. "ML Kit"(without firebase branding) contains all the on-device APIs. Here's the migration guide from firebase mlkit to mlkit. All further improvements and new APIs will be released only with the new ML Kit. Could you try the standalone ML Kit to see if you still see this issue? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants