Skip to content
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

Deprecation Warning: torch.cuda.amp.custom_fwd #83

Open
kwokster10 opened this issue Dec 17, 2024 · 2 comments
Open

Deprecation Warning: torch.cuda.amp.custom_fwd #83

kwokster10 opened this issue Dec 17, 2024 · 2 comments

Comments

@kwokster10
Copy link

Hi,

I keep seeing this deprecation warning whenever I import transparent-background

warnings.py:109 pid:799067 thread:139732230547264 [/opt/pyre/lib/python3.8/site-packages/kornia/feature/lightglue.py:44: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.#012 @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)#012]

It looks to also be from a dependency. Is it on your radar to address at all?
Thanks!

@plemeri
Copy link
Owner

plemeri commented Dec 19, 2024

Hi @kwokster10, thank you for enjoying our work. It seems like the warning is happening from the other dependency kornia. Since it is not happening in our package and it is not an error, I think we'll not going to resolve this problem at this moment. You can either just disable warning or raise an issue to Kornia.

Please let me know if this issue affects this package other than throwing warnings.
Thank you.

@plemeri
Copy link
Owner

plemeri commented Dec 19, 2024

And also, Please make sure that you installed our package with below command. Other than that, we cannot ensure the dependencies' version mismatch.

https://github.com/plemeri/transparent-background?tab=readme-ov-file#install-from-pypi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants