-
Notifications
You must be signed in to change notification settings - Fork 219
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
200mb+ CoreML Models causes ARKit hiccups #7
Comments
Hi @oishi89 , Not entirely sure why this issue is happening to you. The multithreading should mean that the model shouldn't cause hiccups for the camera. Apple's VGG16 (553.5 MB) coreml model seems to run fine in this setup for myself on an iPhone 7 plus. Apple does seem to have been tweaking their ARKit and CoreML code though. Would you mind sharing more details? If you can provide a link to your model, a description of how to test it (what objects it recognises), what versions of XCode you're using, what devices you've tested on. I could give it a try. (Also if you could upload a gif/video of the issue that'd be great!) I suspect though that this might be something on the Apple end at the moment and all we can do is compress our models further. |
Hi @hanleyweng |
I see. That's good to know. P.S. iOS 11.1 is currently beta software, so it'll also be good to know Which Beta version you're running. |
UPDATE: It appears LARGE MLModels are having issues in iOS 11.1 betas. From memory, this wasn't an issue in earlier iOS 11.0 beta experiments (with VGG16). I suspect this is due to Apple tweaking CoreML / ARKit. Perhaps in regards to CPU / GPU / Threading. Maybe there'll be a fix in the future. Currently just speculating. Unfortunately, for now, it seems that all we can do is compress our Neural Nets / CoreML Models. Models like Inception v3 appear to run ok in realtime, at ~ 100 mb in size. |
Hi @hanleyweng
I'm doing a same thing as your project and I'm dealing with a big performance problem when running with a bigger coreml model 200mb. Whenever the coreml perform its request the arkit camera previewer get a flick. It seems like the coreml performing is blocked the rendering for a few milliseconds. I tried to run the bigger model on your project as well and there was.the same issues ! do you have any idea ?
The text was updated successfully, but these errors were encountered: