google-ai-edge/mediapipe

Mediapipe Vision Task Files Not Loading from Local Server on iOS Devices with Version <16

nandanpytech opened this issue · 0 comments

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

None

OS Platform and Distribution

iOS with version < 16

MediaPipe Tasks SDK version

0.10.18

Task name (e.g. Image classification, Gesture recognition etc.)

Face LandMark Detection

Programming Language and version (e.g. C++, Python, Java)

JavaScript

Describe the actual behavior

When serving Mediapipe Vision task files (e.g., .wasm, .task) from a local server, the application fails to work on specific iOS devices (e.g., iPhone 12, iPhone 13) running iOS versions less than 16. However, when these files are served from a CDN, the application works perfectly fine under the same conditions. This discrepancy suggests that the issue might be related to how local servers handle requests on older iOS versions.

Describe the expected behaviour

It should work fine when we server from local.

Standalone code/steps you may have used to try to get what you need

const wasmFileSet = { wasmLoaderPath: 'assets/detection-models/vision_wasm_internal.js', wasmBinaryPath: 'assets/detection-models/vision_wasm_internal.wasm', }; async initializeFaceLandMarker() { try { this.faceLandmarker = await FaceLandmarker.createFromOptions(wasmFileSet, { baseOptions: { modelAssetPath: TaskFile.face, delegate: processingUnit, }, numFaces: 1, minTrackingConfidence: 0.8, minFaceDetectionConfidence: 0.8, runningMode: 'VIDEO', outputFacialTransformationMatrixes: true, }); return this.faceLandmarker; } catch (error) { console.log('error: ', error); } }

Other info / Complete Logs

No response