charigyang / itsabouttime

Code repository for "It's About Time: Analog clock Reading in the Wild"
MIT License
66 stars 10 forks source link

"kornia.geometry.transform.warp_perspective" #1

Open cuishuhao opened 2 years ago

cuishuhao commented 2 years ago

Thanks for sharing the excellent job! In achieving STN, instead of the pytorch tutorials of STN, the codes adopt "kornia.geometry.transform.warp_perspective" to generate new images. I wonder why kornia is adopted, and the differences between the methods.

charigyang commented 2 years ago

Hi, thanks for the interest in our work.

The tutorial mentioned might be this one? https://pytorch.org/tutorials/intermediate/spatial_transformer_tutorial.html

It should be very similar -- given that warp_perspective is based on grid sample anyway. The only difference here is we do perspective warping as opposed to affine in the original STN, but I don't think that will make a major difference in terms of outcome.

cuishuhao commented 2 years ago

Thank you!