-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cached models only compared by name and tag #12
Comments
The download service does compare checksums, if they exist. See here. The |
Oh I see. I was at the wrong position in the code.. I do not see the DiskCacheService being called anywhere in this repository. The DownloadService is also not being called if the directory for the model in the cached folder already exists (code. So I cannot find a way where checksums are being compared even if they existed. |
Quick solution:
Long term solution:
|
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/tensorflow-model-downloading/40514/2 |
I have an issue with the current way we load cached models. If one rebuilds the model locally or if we update remote networks but keep the name, the plugin will still use the old cached one because we just compare the file name and tag (right?). What would be the best way to do it? Are hash sums not appropriate for some reason? Could we at least check for a changed file timestamp? I can implement it, just asking for the best strategy or if I am misunderstanding something.
The text was updated successfully, but these errors were encountered: