face-landmarking-ios icon indicating copy to clipboard operation
face-landmarking-ios copied to clipboard

Enhance dlib::deserialize time

Open momoohidayat opened this issue 6 years ago • 2 comments

Is there any workaround to enhance this method?:

dlib::deserialize(modelFileNameCString) >> sp;

because when i debug, this method takes about 5s to finish

2017-08-04 18:20:20.906752+0700 xxapp[3460:819204] start deserialize: 1501845620.906730
2017-08-04 18:20:26.145505+0700 xxapp[3460:819204] finish deserialize: 1501845626.144248

momoohidayat avatar Aug 04 '17 11:08 momoohidayat

Is this in debug mode or with optimizations? Because dlib is very slow in debug mode anyway.

zweigraf avatar Aug 04 '17 12:08 zweigraf

When do work on sample buffer,its fast enough,the problem is when initiate parse the .dat file, maybe because its 90MB file?

Calling deserialize method takes about 5second, after that processing the landmark is good at 40fps

momoohidayat avatar Aug 04 '17 13:08 momoohidayat