cvlab-epfl / tf-lift

Tensorflow port of LIFT (ECCV 2016), with training code.
197 stars 55 forks source link

Lift features not uint8 #20

Closed luczeng closed 6 years ago

luczeng commented 6 years ago

Dear all,

I am surprised to see that the LIFT features are not uint8 but float.

This is quite surprising as SIFT is usually of uint8 type. I understand that they are not between 0-255, as some normalization has probably been applied before training.

However, I am usually using uint8 features. Will I lose precision by converting LIFT features to uint8 ?

Thanks

kmyi commented 6 years ago

SIFT features are actually float, but the openCV implementation just quantizes it after scaling I believe. Simple conversion to uint8 would be problematic, but doing something similar, i.e. quantizing after scaling to a proper range should not drastically affect performance. However, of course this leaves a lot of room for user error.