is this an error in comfyui [Prompt Server] web root: C:\Users\Public\Public…
- User
is this an error in comfyui [Prompt Server] web root: C:\Users\Public\Public Programs\ComfyUI\ComfyUI_Windows_portable_Stable\ComfyUI\web C:\Users\Public\Public Programs\ComfyUI\ComfyUI_Windows_portable_Stable\python_embeded\Lib\site-packages\kornia\feature\lightglue.py:44: FutureWarning:
torch.cuda.amp.custom_fwd(args...)is deprecated. Please usetorch.amp.custom_fwd(args..., device_type='cuda')instead. @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32) - Assistant
The message you're seeing is a warning rather than an error. It indicates that the code is using a deprecated method from the PyTorch library, specifically
torch.cuda.amp.custom_fwd. The warning advises updating the code to usetorch.amp.custom_fwdwith adevice_type='cuda'argument to ensure compatibility with future versions of PyTorch.Here's what you can do:
-
Ignore the warning: If ComfyUI and its features are working as expected, you can choose to ignore this warning temporarily. It does not immediately affect the functionality but might need attention if you upgrade to a future PyTorch version where the deprecated method is removed.
-
Check for updates: Look for an updated version of the Kornia library or ComfyUI that addresses this deprecation warning. Developers may have already released a new version that resolves the warning.
-