I want to create yolo V5 with pytorch, and create a function that recognizes a face with my own data and returns the recognized size

I want to create yolo V5 with pytorch, and create a function that recognizes a face with my own data and returns the recognized size.
So I have three questions.

  1. How can I make yolo v5 by myself?
  2. How can I return the recognized size?