-
Notifications
You must be signed in to change notification settings - Fork 94
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
LCC and SSIM loss function error #28
Comments
Hi, I think this is versioning issue with PyTorch. We work on it in order to support the newest PyTorch version. |
Yes, Try Version 1.3 or below |
Alright, I will try that. Thank you for your fast help. I will keep you up to date!
On 23 Apr 2020, at 20:32, RobinSandkuehler <[email protected]<mailto:[email protected]>> wrote:
Yes, Try Version 1.3 or below
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fairlab-unibas%2Fairlab%2Fissues%2F28%23issuecomment-618575794&data=02%7C01%7C%7C651a80f99c1f4812995008d7e7b4b5b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637232635633200858&sdata=Nrx8UiRk%2BM%2F3FE3g7anmAOr4CfxFruux37Czoa9jA2M%3D&reserved=0>, or unsubscribe<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGIE33IVMCDCDTBZD5VXUSLROCCUTANCNFSM4MPAR5DQ&data=02%7C01%7C%7C651a80f99c1f4812995008d7e7b4b5b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637232635633200858&sdata=PVopPrHoJbXP%2FOlRlrZpXXpH3PT0EWCxczRjjvB3pQY%3D&reserved=0>.
|
@RobinSandkuehler I tried on torch verson 1.3 and 1.2 but both produced another error: RuntimeError: expected device cpu and dtype Byte but got device cpu and dtype Bool I tried figuring out why dtype is set to Bool, but I cannot seem to figure out why it is happening |
The issue is that the mask is a boolean tensor. In the code on line 267, there is |
I am trying to do some Rigid Registration on binary images of size 64x64 and I was playing around with different loss functions. But while trying to use both LCC and SSIM loss functions, I got following error:
RuntimeError: Subtraction, the
-
operator, with a bool tensor is not supported. If you are trying to invert a mask, use the~
orlogical_not()
operator instead.I am not quite sure what this error entails, could anyone assist me here?
The text was updated successfully, but these errors were encountered: