Relja / netvlad

NetVLAD: CNN architecture for weakly supervised place recognition
MIT License
529 stars 122 forks source link

How to choose good number of cluster and dimension? #35

Closed RaymondLmx closed 3 years ago

RaymondLmx commented 3 years ago

The feature is small in my experiments which is [1, 1024]. This shape is far small than that in your experiments. So how can I choose my cluster number and dimension number?

Relja commented 3 years ago

Like many other things such, there is no general answer about the "best" number of clusters. Typically more clusters is better if you have many features and enough training data to learn this, but it also produces larger NetVLAD vectors. As with other related works like VLAD, Fisher Vectors, etc you just have to experimentally see what works.