Skip to content

Commit 01b3d0a

Browse files
authored
accessing UNet depth from config.py
1 parent 4cd7560 commit 01b3d0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
print('len(test_loader) : {} @bs={}'.format(len(test_loader), cfg.test_bs))
2828

2929
# defining the model
30-
model = UNet(n_classes = 1, depth = 3, padding = True).to(device)
30+
model = UNet(n_classes = 1, depth = cfg.depth, padding = True).to(device)
3131

3232
ckpt_path = os.path.join(cfg.models_dir, cfg.ckpt)
3333
ckpt = torch.load(ckpt_path)

0 commit comments

Comments
 (0)