RuntimeError with AttentionUNet #5421
-
|
I'm getting a RuntimeError when using the AttentionUnet in both 2D and 3D. This happens when training using a dataset and training script that works fine with a normal unet, a segan, and a unet-r (in both 2D and 3D) so there must be something specific that I am doing wrong or misunderstanding about how to use the attentionunet properly. Here is a very minimal sample of code to reproduce the problem: Here is the terminal output: I tried to go in and look at the source code to trace the problem but I can't figure out what the problem would be, the code is a bit too complex for me to backtrace to where the issue might be. Does anyone use the AttentionUnet successfully and can see what I am doing wrong? Or is this a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @njneeteson, thanks for reporting, that's a bug in the stride parameter, the current version only supports stride=[2, 2..., |
Beta Was this translation helpful? Give feedback.
Hi @njneeteson, thanks for reporting, that's a bug in the stride parameter, the current version only supports stride=[2, 2...,
there is a pr to fix it https://github.com//pull/5423
Thanks!