sdcb / PaddleSharp

.NET/C# binding for Baidu paddle inference library and PaddleOCR
Apache License 2.0
1.04k stars 197 forks source link

PaddleOCR c# not work in VM windows Server 2016 #106

Open emranallan opened 1 month ago

emranallan commented 1 month ago

Describe the bug

i'm trying to run code on VM ware 2016 and give me this erro 'iisexpress.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.7\System.Runtime.InteropServices.RuntimeInformation.dll'. The program '[1520] iisexpress.exe' has exited with code 3221225501 (0xc000001d) 'Illegal Instruction'.

but on my laptop work sharp

Steps to reproduce the bug

FullOcrModel model = LocalFullModels.EnglishV3; PaddleOcrAll all = new PaddleOcrAll(Globals.model, PaddleDevice.Mkldnn()) { AllowRotateDetection = false, Enable180Classification = false, }; crash here

Expected behavior

No response

Screenshots

No response

Release version

No response

IDE

No response

OS version

windows server 2016

Additional context

No response

n0099 commented 1 month ago

Since you are using mkldnn #75, does your physical cpu of VM supporting AVX2 or AVX-512?

emranallan commented 1 month ago

image (7)

thanks for answer not support can i do any thing ?

n0099 commented 1 month ago

Not even AVX2? Replace PaddleDevice.Mkldnn() with PaddleDevice.Openblas() and expect performance downgrade.

emranallan commented 1 month ago

Dear sir; i just replace to openlabs ,but i'm still facing same issue The program '[1520] iisexpress.exe' has exited with code 3221225501 (0xc000001d) 'Illegal Instruction'.

sdcb commented 1 month ago

Try uninstall the mkldnn package and install this one: openblas-noavx - https://packages.nuget.org/packages/Sdcb.PaddleInference.runtime.win64.openblas-noavx/

emranallan commented 1 month ago

dear sir; thanks for you effort ,but i'm still facing same error

n0099 commented 1 month ago

Try put it out of IIS process into a standalone .exe?

emranallan commented 1 month ago

Try put it out of IIS process into a standalone .exe?

how to to that please

n0099 commented 1 month ago

but on my laptop work sharp

Are you using IIS Express on the environment of laptop?

emranallan commented 1 month ago

yes i'm using iis express on my laptob

n0099 commented 1 month ago

https://github.com/bjornd/jvectormap/issues/18

emranallan commented 1 month ago

is there any specific CPU to make application work still not work on Virtual Machine Windows server 2019.

n0099 commented 1 month ago

https://github.com/sdcb/PaddleSharp/issues/75#issuecomment-1845223225 https://en.wikipedia.org/wiki/AVX-512#CPUs_with_AVX-512