You can refer How to pass the 5 landmarks of retinaface and perform face alignment between pgie and sgie? - #8 by mchi