ranahanocka / MeshCNN

Convolutional Neural Network for 3D meshes in PyTorch
MIT License
1.56k stars 314 forks source link

Is it possible to use generate edges txt file (.eseg) manually or by my own script for edges of low res mesh. #78

Open abdullahkhan-z opened 4 years ago

abdullahkhan-z commented 4 years ago

This is what is stated in wiki.

Each mesh is simplified to roughly the same number of edges, then new ground-truth segmentation files for the low resolution meshes (eseg) are generated from the original high resolution segmentation files. The seseg can be generated from the new eseg files.

What I understood is that, for original mesh, annotate edges corresponding to their class as per format of .eseg file, that I might be able to do somehow or perhaps you have some scripts to do so. According to above quoted statement, the mesh number of edges has to be consistent with the rest of meshes that means there would be quality downgrading or upgrading something like that and from what you stated above, the annotated file will be re evaluated by some script to handle that down sampled or up sampled mesh. I saw the .eseg files in the dataset, from the looks of. it, I was wondering, why can't I simply create all meshes of same number of edges and create a .eseg file based on the edges I want to be part of a particular class?

ranahanocka commented 4 years ago

Hi @abdullahkhan-z ,

We used a dataset (human seg) which has per-face segmentation labels at a high resolution. To make learning easier, we simplified the meshes to a lower resolution. Then we needed to run an algorithm to calculate the new segmentation labels on the low resolution meshes (which came from the high resolution version with labels).

If your segmentation class is already relatively low resolution, you can skip the simplification stage.

HuanDinh20 commented 2 years ago

I want to simplified my own meshes to a lower resolution too. Could you help me about the algorithm to calculate the new segmentation labels on the low resolution meshes please?