We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d4ea83 + 88def80 commit 26fa53aCopy full SHA for 26fa53a
pytorch3dunet/unet3d/config.py
@@ -49,7 +49,7 @@ def load_config():
49
if device == 'cpu':
50
logger.warning('CPU mode forced in config, this will likely result in slow training/prediction')
51
config['device'] = 'cpu'
52
- return config
+ return config, config_path
53
54
if torch.cuda.is_available():
55
config['device'] = 'cuda'
pytorch3dunet/unet3d/seg_metrics.py
@@ -29,7 +29,7 @@ def _iou_matrix(gt, seg):
29
seg = _relabel(seg)
30
31
# get number of overlapping pixels between GT and SEG
32
- n_inter = contingency_table(gt, seg).A
+ n_inter = contingency_table(gt, seg).toarray()
33
34
# number of pixels for GT instances
35
n_gt = n_inter.sum(axis=1, keepdims=True)
0 commit comments