Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 20, 2023
1 parent 929f414 commit 0bb01de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions monai/apps/auto3dseg/data_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get_all_case_stats(self, key="training", transform_list=None):
else:
nprocs = torch.cuda.device_count()
print(f'Found {nprocs} GPUs for data analyzing!')
set_start_method('forkserver', force=True)
set_start_method('forkserver', force=True)
with Manager() as manager:
manager_list = manager.list()
processes = []
Expand Down Expand Up @@ -317,5 +317,3 @@ def _get_all_case_stats(self, rank: int=0, world_size: int=1, manager_list: Mana
)
result[DataStatsKeys.BY_CASE].append(stats_by_cases)
manager_list.append(result)


4 changes: 2 additions & 2 deletions monai/networks/nets/swin_unetr.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ def __init__(
self.layers1c = nn.ModuleList()
self.layers2c = nn.ModuleList()
self.layers3c = nn.ModuleList()
self.layers4c = nn.ModuleList()
self.layers4c = nn.ModuleList()
down_sample_mod = look_up_option(downsample, MERGING_MODE) if isinstance(downsample, str) else downsample
for i_layer in range(self.num_layers):
layer = BasicLayer(
Expand Down Expand Up @@ -1015,7 +1015,7 @@ def __init__(
elif i_layer == 2:
self.layers3c.append(layerc)
elif i_layer == 3:
self.layers4c.append(layerc)
self.layers4c.append(layerc)

self.num_features = int(embed_dim * 2 ** (self.num_layers - 1))

Expand Down

0 comments on commit 0bb01de

Please sign in to comment.