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

[iOS] Simulator should support analyzeImage #1269

Closed
Tracked by #1225
navaronbracke opened this issue Dec 28, 2024 · 1 comment
Closed
Tracked by #1225

[iOS] Simulator should support analyzeImage #1269

navaronbracke opened this issue Dec 28, 2024 · 1 comment
Assignees

Comments

@navaronbracke
Copy link
Collaborator

navaronbracke commented Dec 28, 2024

As reported in #1225 (comment)
there is an error when trying to set up the detection model for the iOS Simulator.

We should tweak the model request for the iOS SImulator.

At first glance, we can use the useCPUOnly flag, but that flag was deprecated:
https://forums.developer.apple.com/forums/thread/696714
https://developer.apple.com/documentation/vision/vnrequest/usescpuonly

We can just no-op out of it, or figure out a workaround instead.

Perhaps setting preferBackgroundProcessing to false might help on the Simulator

@navaronbracke navaronbracke changed the title [iOS] SImulator should opt into CPU only usage of coreML [iOS] Simulator should opt into CPU only usage of coreML Dec 28, 2024
@navaronbracke navaronbracke changed the title [iOS] Simulator should opt into CPU only usage of coreML [iOS] Simulator should support analyzeImage Dec 28, 2024
@navaronbracke navaronbracke self-assigned this Jan 4, 2025
@navaronbracke
Copy link
Collaborator Author

I did evaluate if preferBackgroundProcessing had any effect, but that didn't help. Since useCPUOnly is deprecated in iOS 17, I opted into just returning an unsupported operation error instead.

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

No branches or pull requests

1 participant