-
Notifications
You must be signed in to change notification settings - Fork 84
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
mediapipe warning #82
Comments
The same is true of: /home/user/mambaforge/envs/env/lib/python3.10/site-packages/controlnet_aux/open_pose/hand.py:4: DeprecationWarning: Please use `gaussian_filter` from the `scipy.ndimage` namespace, the `scipy.ndimage.filters` namespace is deprecated. which comes from open_pose, and /home/user/mambaforge/envs/env/lib/python3.10/site-packages/timm/models/registry.py:4: DeprecationWarning: Importing from timm.models.registry is deprecated, please import via timm.models
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", DeprecationWarning) which comes from segment anything. |
I would maybe not import the processor in this case and just directly import the specific processor class you need |
When I import the specific processor (e.g.,
I think this is because everything is imported in the base level |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When the
Processor
class is imported, all possible processors are also imported. This results in this warning being displayed, even though I have no intention of using the processor that requires mediapipe. Would it be possible to move this warning into runtime? Such that the warning is only displayed if one tried to use the relevant processor?The text was updated successfully, but these errors were encountered: