Closed takuya-takeuchi closed 3 years ago
UltraFace seems to not support GPU?
dotnet run -c Release RFB-320.bin RFB-320.param test.jpg 100
[0 GeForce GTX 1080] queueC=2[8] queueG=0[16] queueT=1[1] buglssc=0
[0 GeForce GTX 1080] fp16p=1 fp16s=1 fp16a=0 int8s=1 int8a=1
[1 Intel(R) UHD Graphics 630] queueC=0[1] queueG=0[1] queueT=0[1] buglssc=0
[1 Intel(R) UHD Graphics 630] fp16p=1 fp16s=1 fp16a=1 int8s=1 int8a=1
Processing test.jpg
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at NcnnDotNet.NativeMethods.net_Extractor_extract(IntPtr, Byte[], Int32, IntPtr)
at NcnnDotNet.NativeMethods.net_Extractor_extract(IntPtr, Byte[], Int32, IntPtr)
at NcnnDotNet.Extractor.Extract(System.String, NcnnDotNet.Mat)
at UltraFaceDotNet.UltraFace.Detect(NcnnDotNet.Mat, System.Collections.Generic.ICollection`1<UltraFaceDotNet.FaceInfo>)
at UltraFaceDotNet.UltraFace.Detect(NcnnDotNet.Mat)
at Benchmark.Program.Main(System.String[])
This bug is happening with CPU mode too
@hueligton I have never seen this issue on cpu binary, Today, I tried this example and it does not happen.
On latest NcnnDotNet, ncnn does not occur crash but performance does not get over cpu's.
Example does not enable GPU.
Work on https://github.com/takuya-takeuchi/UltraFaceDotNet/tree/feature/EnableGPU