accelerated_features icon indicating copy to clipboard operation
accelerated_features copied to clipboard

Can we train XFeat on a custom dataset?

Open basil-k-aji-dev opened this issue 2 years ago • 3 comments

basil-k-aji-dev avatar Jul 31 '24 14:07 basil-k-aji-dev

Hi @blackmamba-ops, yes, it is possible to train XFeat on a custom dataset. You just need to adapt the dataloader for your dataset.

guipotje avatar Aug 06 '24 12:08 guipotje

Hi @blackmamba-ops, yes, it is possible to train XFeat on a custom dataset. You just need to adapt the dataloader for your dataset.

How should I create this dataset, any Tutorial?

Lannist avatar Aug 09 '24 09:08 Lannist

All you need is to construct a data loader that delivers a correspondence map in the form xy_source (N,2) and xy_target (N,2), where each i-th line in the first set is the source pixel coordinates that corresponds to the i-th target pixel. This can be obtained via homography for synthetic training, or depth maps / dense optical flow. Here is the exact line where the code expects this correspondence map.

guipotje avatar Aug 24 '24 17:08 guipotje