learned_perceptual_image_patch_similarity
function needs to synchronize device and dtype between net and input images
#2232
Labels
🐛 Bug
When I try to use
preds
andtarget
ontorch.device('cuda:0')
to calculate with functionlearned_perceptual_image_patch_similarity
fromtorchmetrics.functional.image
, the function will throw exception.Maybe there are some other functions with internal
torch.nn.Module
instances intorchmetrics.functional
will proceed like this.To Reproduce
Expected behavior
Change
torchmetrics/src/torchmetrics/functional/image/lpips.py
Line 430 in bcf7867
To
Environment
The text was updated successfully, but these errors were encountered: