dataset stretch now optional
This commit is contained in:
@@ -41,13 +41,11 @@ class ResidualConvClassifier(BinaryMaskDatasetMixin,
|
||||
last_shape = self.conv_list[-1].shape
|
||||
for idx in range(len(self.conv_filters)):
|
||||
conv_module_params.update(conv_filters=self.conv_filters[idx])
|
||||
self.conv_list.append(ResidualModule(last_shape, ConvModule, 3, **conv_module_params))
|
||||
self.conv_list.append(ResidualModule(last_shape, ConvModule, 2, **conv_module_params))
|
||||
last_shape = self.conv_list[-1].shape
|
||||
try:
|
||||
self.conv_list.append(ConvModule(last_shape, self.conv_filters[idx+1], (k, k), conv_stride=(2, 2), conv_padding=2,
|
||||
**self.params.module_kwargs))
|
||||
for param in self.conv_list[-1].parameters():
|
||||
param.requires_grad = False
|
||||
last_shape = self.conv_list[-1].shape
|
||||
except IndexError:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user