PinataFarms / DAD-3DHeads

Official repo for DAD-3DHeads: A Large-scale Dense, Accurate and Diverse Dataset for 3D Head Alignment from a Single Image (CVPR 2022).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

it is not so good, it is good only for the 1.jpeg image.

sunjunlishi opened this issue · comments

2_face_mesh
220421idcardposNew_0
1_445_landmarks
need retraining?

It is sensitive to the way you crop the head, indeed. If you want to have the model work on your custom crops, you would likely need to retrain the model for your particular use case. The training code is available in the repo.

The training dataset contains bounding boxes for heads. You can see here

offset = tuple(0.1 * np.random.uniform(size=4) + 0.05)
x, y, w, h = ensure_bbox_boundaries(extend_bbox(np.array(bbox), offset), img.shape[:2])
how we pre-process those bounding boxes during the training stage.

Hope this helps!