PruneTruong / DenseMatching

Dense matching library based on PyTorch
GNU Lesser General Public License v2.1
689 stars 81 forks source link

About the theta of synthetic data warping #14

Closed zwyking closed 2 years ago

zwyking commented 2 years ago

Hi, I'm curious about that how to generate the theta for homo/tps/affine. Where should I find the code of the part?

Thanks.

PruneTruong commented 2 years ago

Hi, in this example https://github.com/PruneTruong/DenseMatching/blob/main/train_settings/GLUNet/train_GLUNet_with_synthetically_generated_data.py, I generate random flow fields on the fly, and apply them to an image, to create a training image pair.

zwyking commented 2 years ago

Ok, thanks for your reply!