Open saadi297 opened 1 year ago
Hi @saadi297,
Apologies for the delay in response. Could you please confirm whether you still require assistance in resolving this issue or if it has been resolved from your end?
Thank you!!
Yes, I still require assistance
same issue. I am also confused because of mismatch between OBJ face and canonical face model.png.
Is there any index map between two??
@saadi297 I find out correct indexing mapping between the output of detector and given OBJ file.
First of all, I conclude that only "canonical_face_model.obj" is available which has 468 keypoints without iris.
The reason is that "face_model_with_iris.obj" contains wrong uv coordinates in additional 10 iris keypoints.
When visualizing only 10 extra iris points of "face_model_with_iris.obj", the result is like below.
iris 10 points are overlapped on same position. "face_model_with_iris.obj" file is broken file.
the order of keypoints in "canonical_face_model.obj" is as follow.
the order of output keypoints of detector is as follow. (it is same as official canonical_face_model_uv_visualization.png)
If you want to convert the output of detector to OBJ vertex order, use this mapping. det2obj.json
Reversely, you can convert the OBJ vertex order to detector's order by following file.
I hope it will help you !
I am trying to understand the canonical face model. I tried to project the vt coordinates but I am not getting the right landmark indices. Please see the following code and figure:
You can see that the landmark indices are different from this image I then tried projecting these uv coordinates and got the correct indices as shown below. I also noticed that the uv points in the vertex_buffer is same as the one given here As a last experiment, I also tried to convert canonical_face_model.obj file to geometry_pipeline_metadata_landmarks.pbtxt based on this comment and using this code . The result was different from this file. I would really appreciate it if anyone can explain me on how to get correct indices from canonical_face_model.obj file. Do I need to perform some mapping?