Closed adizhol closed 5 years ago
Dear adizhol, could you provide more details where the error occurs? Is it an example from airlab or is it your own example?
I can replicate this error (occurs directly when running one of the examples)
import torch
A = torch.randn(4,5,6)
A.requires_grad = True
B = torch.randn(4,5,6)
B.requires_grad = True
displacement = (A*B).data
displacement = torch.transpose(displacement.unsqueeze_(0),0,3).unsqueeze_(0)
shows the same error: RuntimeError: set_storageoffset is not allowed on Tensor created from .data or .detach() I would suggest to replace all unsqueeze calls that are not inline with unsqueeze these are in: utils.py in upsample_displacement and image.py initializeForTensors initializeForImages, _reverse_axis (only line 168 and not 169), image_from_numpy, and potentially some more Btw: great work on Airlab, I'm just exploring it, but suppose it will be very useful for us
Hi, Thank you very much. We will fix this issue.
According to your suggestions, we replaced all the in-place operations. Thanks for your help.
Was airlab tested with pytorch 1.0.1? I'm getting an error in registration code. It works with pytorch 0.4.1
Thanks