sylvainprigent / napari-sdeconv

Napari plugin for 2D and 3D image deconvolution
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

The size of tensor a (538) must match the size of tensor b (154) at non-singleton dimension 4 #5

Open onghuiting opened 1 year ago

onghuiting commented 1 year ago

hi, I get the error below, when I tried to run 3d deconvolution for a z-stack.

torch.fft = <module 'torch.fft' from 'C:\Users\ht\.conda\envs\napari-env\lib\site-packages\torch\fft\init.py'> torch.fft.ifftn = 94 mse = torch.nn.MSELoss() 95 return mse(blurry_image, conv_deblured_image)

RuntimeError: The size of tensor a (538) must match the size of tensor b (154) at non-singleton dimension 4

JackSiekkinen commented 1 month ago

Hi Onghuiting, Did you ever resolve this issue? I'm also receiving this error when running deconvolution on z-stacks. Any help would be appreciated. Thanks.

K-Swish commented 1 week ago

Same here!