Skip to content

Commit

Permalink
num_res_units setting in train config is now actually reflected in mo…
Browse files Browse the repository at this point in the history
…del architecture
  • Loading branch information
chriscyyeung committed Feb 13, 2024
1 parent cef8eee commit 1e77e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UltrasoundSegmentation/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def main(args):
train_dataset,
batch_size=config["batch_size"],
shuffle=config["shuffle"],
num_workers=4,
num_workers=2,
generator=g
)
val_dataloader = DataLoader(
Expand Down Expand Up @@ -252,7 +252,7 @@ def main(args):
out_channels=config["out_channels"],
channels=(16, 32, 64, 128, 256),
strides=(2, 2, 2, 2),
num_res_units=2,
num_res_units=config["num_res_units"] if "num_res_units" in config else 2,
dropout=dropout_rate
)
model = model.to(device=device)
Expand Down

0 comments on commit 1e77e03

Please sign in to comment.