They width/height in yolo format are the fraction of total width/height of (entire image). So the top-left corner is always (0,0) and bottom-right corner is always (1,1) irrespective of size of image.
See this question for the conversion of bounding box (x1, y1, x2, y2) to YOLO Style (X, Y, W, H)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…