Deep-MVLM icon indicating copy to clipboard operation
Deep-MVLM copied to clipboard

Regarding custom dataset

Open pytholic opened this issue 3 years ago • 1 comments

Hi. I have a query regarding the implementation using custom dataset. I have .obj mesh file (example screenshot is attached) example

I wanted to test the model on it but I get the message "Not enough valid view lines for landmark" for all the landmarks.

I wanted to ask if you can guide on how to train the model on custom dataset and how to annotate.

pytholic avatar Jul 30 '21 05:07 pytholic

Hello ! We had kind of the same problem. Notice that the 3D file that the script is expecting is a .wrl (Vermal) file, so if you're using a .obj file (like I did) you need to change the vtkVRMLImporter() in vtkOBJImporter(). You can keep all the correlated method calls as they are.

jacobuu avatar Sep 06 '22 10:09 jacobuu

@jacobbuu @pytholic Hello! I am experiencing same issue with .ply file. Did you modified the code in preparedata.py and succeed?

iPsych avatar Apr 30 '23 23:04 iPsych

Hey! It's been a long time but yeah, I modified the preparedata.py, since I had OBJ files I just neede to change the vtk importer from vtkVRMLImporter() to vtkOBJImporter(), so I suggest you to search if there's a specific importer for you format, and if it doesn't exist, try to see if there's a way to convert using maybe a library from .ply to .obj and then use the vtkOBJImporter()

jacobuu avatar May 03 '23 21:05 jacobuu