Open diyiiyiii opened 2 years ago
Hi ! Normally this should, have you pinned thé problem down? Is there an error message?
Hi ! Normally this should, have you pinned thé problem down? Is there an error message?
Hi, @aliutkus, I got a same error when I use interp1d to train a network. The error message is as follows,
Traceback (most recent call last):
File "/home/wangping/Codes/DeepOpticsSCI/E2E_train.py", line 296, in
In my utils.py, code related with interp1d is as
def crf_3d(x): # x : a torch.Tensor with size [batch, H, W] batch, H, W = x.size() x = x.view(batch*H, W) E = torch.linspace(0.0, 1.0, steps= 1024, requires_grad=False).to(x.device)
f0 = parse_emor() # f0 is a numpy.array loaded from the local .txt file I = torch.from_numpy(f0).to(x.device)
y = interp1d(E, I, x) y = y.view(batch, H, W) return y
My codes run under pytorch=1.8.1, Python=3.9.4. Please let me know what's wrong? Thanks in advance.
Thanks for your excellent work! I meet an error about backward grad issue, does this project support back propagation operation?