Compare commits

...

2 Commits

Author SHA1 Message Date
zjut
775cbdf20f refactor(net): 修改 DetailFeatureExtraction 和 DetailFeatureExtractionSAR 类中的 DetailNode 使用方式
- 将 DetailFeatureExtraction 类中的 DetailNode 使用方式从 useBlock=2 改为 useBlock=1
- 将 DetailFeatureExtractionSAR 类中的 DetailNode 使用方式从 useBlock=1 改为 useBlock=2
2024-11-18 09:27:16 +08:00
zjut
5555d0d39c feat(net): 修改 DetailFeatureExtraction 和 DetailFeatureExtractionSAR 类
- 将 DetailFeatureExtraction 类中的 DetailNode 使用参数 useBlock=2
- 将 DetailFeatureExtractionSAR 类中的 DetailNode 使用参数 useBlock=1

vi wtconv
sar inn
2024-11-17 16:12:44 +08:00

4
net.py
View File

@ -286,7 +286,7 @@ class DetailFeatureFusion(nn.Module):
class DetailFeatureExtraction(nn.Module):
def __init__(self, num_layers=3):
super(DetailFeatureExtraction, self).__init__()
INNmodules = [DetailNode(useBlock=0) for _ in range(num_layers)]
INNmodules = [DetailNode(useBlock=1) for _ in range(num_layers)]
self.net = nn.Sequential(*INNmodules)
def forward(self, x):
@ -299,7 +299,7 @@ class DetailFeatureExtraction(nn.Module):
class DetailFeatureExtractionSAR(nn.Module):
def __init__(self, num_layers=3):
super(DetailFeatureExtractionSAR, self).__init__()
INNmodules = [DetailNode() for _ in range(num_layers)]
INNmodules = [DetailNode(useBlock=2) for _ in range(num_layers)]
self.net = nn.Sequential(*INNmodules)
def forward(self, x):