Cannot use MediaPipeTasksVision pod alongside TensorFlowLiteSwift pod with Metal backend #5783
Labels
platform:ios
MediaPipe IOS issues
stat:awaiting response
Waiting for user response
type:bug
Bug in the Source Code of MediaPipe Solution
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
iOS 18.1.1
Mobile device if the issue happens on mobile device
iPhone 15
Browser and version if the issue happens on browser
No response
Programming Language and version
Swift
MediaPipe version
0.10.20
Bazel version
No response
Solution
Object Detection (any)
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
16.1
Describe the actual behavior
Describe the expected behaviour
I should be able to use "pod 'TensorFlowLiteSwift', '~> 0.0.1-nightly', :subspecs => ['Metal']"
Standalone code/steps you may have used to try to get what you need
Use this Podfile
pod install
Build & run iOS app
Other info / Complete Logs
Most developers considering using Mediapipe in iOS apps will have separate TFLite models executed using
TensorFlowLiteSwift
directly. However, once the Mediapipe pod (egMediaPipeTasksVision
) is added to your podfile, existing usage ofTensorFlowLiteSwift
+ Metal delegate will cause runtime errors. They both link to the same Obj-C code.The Mediapipe iOS Pod should support a configuration that does not collide with
TensorFlowLiteSwift
Pod + Metal to allow greater iOS adoption with apps already using TFLite.The text was updated successfully, but these errors were encountered: