--------------------------------------------------- ------------ ------------ ------------ ------------ -----…
- User
--------------------------------------------------- ------------ ------------ ------------ ------------ ------------ ------------ ------------ ------------ Name Self CPU % Self CPU CPU total % CPU total CPU time avg CPU Mem Self CPU Mem # of Calls --------------------------------------------------- ------------ ------------ ------------ ------------ ------------ ------------ ------------ ------------ forward 2.08% 349.944ms 71.24% 11.998s 5.999s 2.12 Mb -520.67 Mb 2 ipex_prepack::convolution_run 33.74% 5.682s 33.75% 5.684s 15.280ms 172.38 Mb -1.50 Mb 372 model_inference 16.04% 2.701s 16.04% 2.701s 2.701s 0 b 0 b 1 torch_ipex::convolution_forward 0.01% 846.306us 15.59% 2.625s 21.167ms 276.08 Mb 0 b 124 ipex_prepack::convolution_prepack 0.02% 2.842ms 10.51% 1.769s 4.756ms 179.31 Mb 0 b 372 ipex_prepack::createConvolutionPrePackOpContext 10.19% 1.715s 10.49% 1.766s 4.748ms 179.31 Mb 0 b 372 aten::batch_norm 0.01% 1.856ms 8.67% 1.460s 3.968ms 256.78 Mb 0 b 368 aten::_batch_norm_impl_index 0.02% 3.855ms 8.66% 1.458s 3.963ms 256.78 Mb 0 b 368 aten::native_batchnorm 8.28% 1.395s 8.32% 1.401s 3.808ms 256.78 Mb -423.00 Kb 368 aten::relu 0.02% 2.960ms 8.29% 1.396s 3.439ms 0 b 0 b 406 --------------------------------------------------- ------------ ------------ ------------ ------------ ------------ ------------ ------------ ------------ Self CPU time total: 16.841s,what,this,result,siggest
- Assistant
- User
fa = FaceAlignment( landmarks_type=LandmarksType.TWO_D, # face_detector='blazeface', device='cpu' ) fa.face_detector.face_detector.eval() fa.face_detector.face_detector = ipex.optimize( fa.face_detector.face_detector, dtype=torch.qint8, weights_prepack=True )i,use,this,any,of,them,make,slow
- Assistant
- User
does,the,profil,result,suggest,that,quantization,not,sutable,here
- Assistant
- User
why,ipex_prepack::createConvolutionPrePackOpContext,called,on,every,modelinference
- Assistant
- User
how,to,code,Fix Input Shapes,Model Freezing,Reuse Pre-Pack Contexts
- Assistant
- User
The performance on 300W is not good enough. May be I need to try more times. If you have any ideas, please contact me or open an issue.
Method Input Size Common Challenge Full set Training Data VGG-Shadow(With Dropout) 70 * 60 5.66 10.82 6.67 300W Mobilenet-v2-stage1 64 * 64 6.07 10.60 6.96 300W and Menpo Mobilenet-v2-stage2 64 * 64 5.76 8.93 6.39 300W and Menpo,what,does,this,mean
- Assistant