justchenhao / STANet

official implementation of the spatial-temporal attention neural network (STANet) for remote sensing image change detection
BSD 2-Clause "Simplified" License
417 stars 110 forks source link

请问怎么更改backbone网络为ResNet50呢(初始为ResNet18)? #63

Open Ricco567 opened 3 years ago

Ricco567 commented 3 years ago

我直接改的话会出现RuntimeError: Given groups=1, weight of size 96 64 1 1, expected input[2, 256, 64, 64] to have 64 channels, but got 256 channels instead,这种错误,希望能够得到您的帮助

sungh66 commented 3 years ago

I have the same problem

ZhaoRuu commented 1 year ago

请问您将resnet18修改成为resnet50模型运行成功了吗???我目前也遇到了这样的问题,想向您请教一下