Closed Hakentha closed 3 years ago
@Hakentha
FaceLandmark call FaceLocation if you do not pass location argument. And you specify Model.Cnn, it means that FRDN use DNN and consume GPU memory. I guess your program does not throw exception when calling FaceLocation with Model.Hog. And distance method never use GPU memory.
And I have some advices,
Thank you for ur response. You help me a lot!!!
Hi, I use DlibDotNet Cuda 11.2, FaceRecognitionDotNet and Dasync.Collections for parallel work.
This is my class to save results.
class ImagesResults { public int id; public string filePath; public Image toCompareData; public IEnumerable<IDictionary<FacePart, IEnumerable<FacePoint>>> landmarks; }
And this is the code: ` _FaceRecognition = FaceRecognition.Create("path to models route");When i use this, i dont have problem. But when i use multiple instances of this code, i get "cuda memory" error. Whe i use the same to get FaceLocation, or Distances, i dont have problem with multiple instances. But when i call FaceLandmark() trow me that.
I have rtx2070 in my laptop.
Thank you!!!