Closed Mofafa closed 2 years ago
my code structure looks like this: ` build 3d face model
for video in videos frames for frame in frames get_landmarks_from_image(frame)
` It's always slow in the first 2 frames.
Hi, during the first iteration some internal buffers are initialized and the model is basically warmed up + the torch.backends.cudnn.benchmark makes a few checks to find the optimal algorithms for the convs on the given hardware.
Hi, during the first iteration some internal buffers are initialized and the model is basically warmed up + the torch.backends.cudnn.benchmark makes a few checks to find the optimal algorithms for the convs on the given hardware.
Thank you!
Hi, thanks for your wonderful work!
I tried to get face landmarks for a group of images in a for loop, and I found that it is always slow in the first 2 images.
I used 3D model and "get_landmarks_from_image" function.
Why?