-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Replace pooch retrieve calls with create followed by fetch to benefit from the retry_if_failed feature #666
Conversation
… from the retry_if_failed feature
…tible with python 3.8
I was not lucky. My PR was pushed just at the same moment as a new major release of They say in their release notes that it is not compatible anymore with python 3.8. I see in your |
… in birefnet session derived classes
…ession derived class model_hash function comments
@dimitribarbot Let's avoid changing so much code just because of the tests. I think we've already solved the issue with downloading the models. Let's close this for now; I hope you don't mind. |
No I don't mind, I agree. Thank you for your help! |
However, new users installing |
@dimitribarbot yeah, you are correct. We need to fix this one. |
I know, as described in setuptools doc, that you can specify which versions to install based on the user's version of Python, e.g.:
But unfortunately, I don't know of any automated way to detect the latest version of a package dependency that is compatible with a specific version of Python. |
This is a replacement of
pooch.retrieve
withpooch.create
andpooch.fetch
to allow the use of theretry_if_failed
parameter.For the moment, I only did the modification for the BiRefNet sessions as they were the ones that were crashing but this modification can also be applied to other sessions as well (except
sam
andunet_custom
that are too specific). Let me know if you'd like me to adapt other sessions as well.Please, don't hesitate to tell me if it's not relevant anymore as you already fixed the test issue (but I guess it may be helpful for end users to have retries as well, just in case).