Closed juntaosun closed 3 months ago
Hi @juntaosun have you tried this repo ? https://github.com/aihacker111/Efficient-Live-Portrait, it seems works faster on my apple silicon
@juntaosun I’m tested 2 model spade generator and warp, but the reason is spade generator , it’s slower than warp , I’m checked the process onnx that some layer in this is take time to fall back CPU , please test my new model in repo , you can see it
After testing, warping.onnx is slower than the original .pth model. The main reasons are the following two points ( warping_module ):
(1) Exporting onnx does not support F.grid_sample 5D, and the non-native solution causes very slow running efficiency.
(2) The “encoder/decoder” in the model network “WarpingNetwork/DenseMotionNetwork/Hourglass” does not support quantization acceleration and is slower in onnx.
đź’ˇIf you are planning to optimize the onnx model, please pay attention to the above two points.