charigyang / itsabouttime

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

it's about time

Code repository for "It's About Time: Analog clock Reading in the Wild"

Packages required: pytorch (used 1.9, any reasonable version should work), kornia (for homography), einops, scikit-learn (for RANSAC), tensorboardX (for logging)

Using pretrained model:

Training:

Dataset (Train):

Dataset (Eval):

Note: src/cyclic_ransac.py is adapted from the source code of scikit-learn (authored by Johannes Schönberger under BSD 3 clause license), to fit a sawtooth wave for cyclic linear data.

Dataset: all are available to download from: https://drive.google.com/drive/folders/14FFDev1Omia_6E48Csw22kfbVAlW10hd?usp=sharing

Teaser video: https://youtu.be/cbiMACA6dRc