avoid download on import
What
Prevent downloading the mobilenetV3 model at import time.
Why
It creates an extra log that can be disturbing when integrating the repo in applications
How
Set the default argument to None, and evaluate and download the model within the __init__ method only (since default args are evaluated at import time but the code in __init__ is not run)
See Issue: https://github.com/idealo/imagededup/issues/200
Could you also update the relevant test cases please?
Thanks @tanujjain. All tests are passing on my side, I added an extra test to check that the model is not downloaded at import time.
please merge this branch to Master!
@tanujjain any thoughts ? I added a new test and they were all passing on my side!
@tanujjain can we merge ?