Closed marcomameli1992 closed 3 years ago
It just means that application ran into hard Metal memory allocation limit on that device. There could be several reasons for that: leaking of GPU resources or just networking being too big for the device.
Typically I would recommend to first try your model on desktop Mac and check how much memory does it use. You can obtain basic memory usage stats by calling _worker.Summary()
.
Ok thank you. To make this experiment I need to do not use the AR Foundation or it can work with macOS? I would like to have an opinion about the code. and some suggestion to manipulate the output of the network. Where I can find some examples?
I would refer to our docs: https://github.com/Unity-Technologies/barracuda-release/blob/release/1.0.0/Documentation%7E/ModelOutput.md
Your code looks correct. You should be able to use the same model loading/execution on MAC. Although not an official tutorial, this project should give you a rough skeleton: https://github.com/AlexRibard/Barracuda-U-2-NetTest
@marcomameli1992 Did the above solve your problem? :)
Closing since some suggestions were given, but there is no more activity on the thread, please reopen if needed.
Hi I'm trying to use the SSD network with mobilenetv2 (with ReLU instead of ReLU6 as activation function) to insert object detection in my AR Application but when I try to run the application on my iPhone XS Max I receive the error in the title. I do not understand why and what I'm doing wrong. Here I report my code:
my script are used as component for Ar Session origin with the use of the model uploaded here: SSDLite