microsoft / AISkillsForWindows

Contains samples for implementing Windows Skills by extending the preview base API and using exsting skill packages
https://docs.microsoft.com/en-us/windows/ai/windows-vision-skills/
MIT License
166 stars 46 forks source link

Crushing after deploying on windows IOT #51

Closed ZubSam closed 5 years ago

ZubSam commented 5 years ago

We have UWP application.

After adding this libs from NuGet we have a problem.

When we try to run our application in desktop (x86/64) - all works.

But when we try to run into rasbery pi 3 (windows IoT, ARM) we have an exception when we try to initailize class ObjectDetectorDescriptor

HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

for example: var descriptor = new ObjectDetectorDescriptor();

LPBourret commented 5 years ago

Hi, The ObjectDetector skill is supported for x64 only for now. We made this decision because the algorithm and machine learning model used under the hood take a lot of memory at runtime, beyond what 32-bit UWP appx permits, leading to OutOfMemory exceptions. We constrained it to x64 only until we can figure a way to gracefully scale to other architectures. That said, note that we could support other architectures for non-UWP apps not constrained with a maximum memory consumption amount. We are also tinkering with lighter and faster (though less precise) models, let us know if this is something you think we should prioritize.

ZubSam commented 5 years ago

Hello. Thanks for the reply, in my opinion it is very important. I think we are not the first to encounter such a problem, and in the future it will be very critical because of the growing demand for the rasbery/windows iot/uwp stack. We would be very grateful if you can solve this problem as soon as possible.

LPBourret commented 5 years ago

Thank you for the feedback, closing this issue now, we will try to prioritize accordingly :)