Skip to content

Commit

Permalink
Update and rename NexToU_Res_Encoder_Decoder.py to NexToU_Encoder_Dec…
Browse files Browse the repository at this point in the history
…oder.py
  • Loading branch information
PengchengShi1220 authored Mar 29, 2024
1 parent 70db9c9 commit 3a9f7e3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, drop_path_rate=0., pool_op_kernel_sizes_len=4):
self.reduce_ratios = [16, 8, 4, 2] + [1] * (pool_op_kernel_sizes_len - 4)

# https://github.com/MIC-DKFZ/dynamic-network-architectures/blob/main/dynamic_network_architectures/building_blocks/residual_encoders.py
class NexToU_ResidualEncoder(nn.Module):
class NexToU_Encoder(nn.Module):
def __init__(self,
input_channels: int,
patch_size: List[int],
Expand Down Expand Up @@ -240,9 +240,9 @@ def compute_conv_feature_map_size(self, input_size):
input_size = [i // j for i, j in zip(input_size, self.strides[s])]
return output

class NexToU_ResidualDecoder(nn.Module):
class NexToU_Decoder(nn.Module):
def __init__(self,
encoder: Union[PlainConvEncoder, ResidualEncoder, NexToU_ResidualEncoder],
encoder: Union[PlainConvEncoder, ResidualEncoder, NexToU_Encoder],
patch_size: List[int],
strides: Union[int, List[int], Tuple[int, ...]],
num_classes: int,
Expand Down

0 comments on commit 3a9f7e3

Please sign in to comment.