pastec
pastec copied to clipboard
Loading the same index on different platforms
I indexed 300k images on a Linux box, then exported it to a file, and loaded that same index on a Mac machine.
Now, I'm running a search request looking up one of the images I indexed. When I requesting from Linux box, I get 2 matches with following scores - [606,100]
. However, when I run that same request on my Mac machine - I get 1 match - [196.0]
. Any idea why is that the case? I use the exact same visualWordsORB.dat
in both environments.
I can't help with this possible issue, but I'm very interested by the code used/installed to run pastec on a Mac. What libraries are not the same from the Ubuntu tutorial ? Did you use Homebrew to install them ? Maybe I can run tests too on my Mac to see if there is a difference in search results.
It may be because the accelerated structure to search in the list of visual words is randomized. On your Mac and on your Linux box, the random number generator is not the same, which could lead to different results. This needs to be more investigated. However, the first question would be if you used the same version of OpenCV on Linux and MacOS.
@abournier I cloned pastec repo on my Mac, and then installed all the deps. I basically used this article - https://electricarchaeology.ca/2016/05/17/getting-pastec-installed-on-mac/
@magwyz I'll get the OpenCV versions on both platforms and will post here later today.
Ok, Mac - [email protected]
. Linux - [email protected]
. Do you think few minor versions difference may impact the results so bad?
Also, I wonder, if the problem is the version - if I install the same version on mac - do I need to reindex all images? Or should I be good just loading the index into the memory and should be good to go?
Thanks for the link ecdeveloper ! I will try this soon.