Skip to content

Commit 26fa53a

Browse files
authored
Merge pull request wolny#118 from shota-0129/fix/missing-return-statement
Fix/missing return statement
2 parents 9d4ea83 + 88def80 commit 26fa53a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pytorch3dunet/unet3d/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def load_config():
4949
if device == 'cpu':
5050
logger.warning('CPU mode forced in config, this will likely result in slow training/prediction')
5151
config['device'] = 'cpu'
52-
return config
52+
return config, config_path
5353

5454
if torch.cuda.is_available():
5555
config['device'] = 'cuda'

pytorch3dunet/unet3d/seg_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _iou_matrix(gt, seg):
2929
seg = _relabel(seg)
3030

3131
# get number of overlapping pixels between GT and SEG
32-
n_inter = contingency_table(gt, seg).A
32+
n_inter = contingency_table(gt, seg).toarray()
3333

3434
# number of pixels for GT instances
3535
n_gt = n_inter.sum(axis=1, keepdims=True)

0 commit comments

Comments
 (0)