MrGiovanni / UNetPlusPlus

[IEEE TMI] Official Implementation for UNet++
Other
2.26k stars 538 forks source link

AttributeError: 'Generic_UNetPlusPlus' object has no attribute 'upsample_mode' #89

Open SalamanderXing opened 1 year ago

SalamanderXing commented 1 year ago

Line 458 in the file: https://github.com/MrGiovanni/UNetPlusPlus/blob/master/pytorch/nnunet/network_architecture/generic_UNetPlusPlus.py references self.upsample_mode, but this is not defined. To fix it it was necessary to replace upsample_mode = ... to self.upsample_mode in init.py of class Generic_UNetPlusPlus.