Feature map up-sampling.
(self, x, factor: float, size: Tuple[int, int])
| 264 | in_features=dims[1], hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop) |
| 265 | |
| 266 | def upsample(self, x, factor: float, size: Tuple[int, int]): |
| 267 | """ Feature map up-sampling. """ |
| 268 | return self.interpolate(x, scale_factor=factor, size=size) |
| 269 | |
| 270 | def downsample(self, x, factor: float, size: Tuple[int, int]): |
| 271 | """ Feature map down-sampling. """ |