template_ffd icon indicating copy to clipboard operation
template_ffd copied to clipboard

How can I test on a new image?

Open WangZixuan opened this issue 7 years ago • 2 comments

Thanks for your work, but your README does not provide a way to reconstruct a mesh from a new image. How can I achieve this? Thank you.

WangZixuan avatar Nov 08 '18 07:11 WangZixuan

I'm afraid I'm fairly flat out with another conference deadline for the next couple of weeks. I'll be refactoring this heavily after that, but in the mean-time you can check out inference.meshaes.InferredMeshManager.get_lazy_dataset, or model.template_ffd_builder.TemplateFfdBuilder.get_prediction_to_mesh_fn. scripts.vis.meshes should also help.

In short, for a template mesh with vertices and faces (V, F) you decompose V into its bernstein basis V = B * P, infer dP using the trained model, then use mesh (V_deformed, F), where V_deformed = B * (P + dP)

jackd avatar Nov 08 '18 07:11 jackd

Thank you, I will check it soon. Wish you good luck in the coming conference!

WangZixuan avatar Nov 08 '18 07:11 WangZixuan