Skip to content

Commit 7aa85b2

Browse files
committed
extract bugfixes: vgg-obstructed model path + unet-dfl output shape
1 parent 815b11f commit 7aa85b2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/extract/mask/unet_dfl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def process(self, batch: np.ndarray) -> np.ndarray:
6868
-------
6969
The predicted masks from the plugin
7070
"""
71-
return self.from_torch(batch.transpose(0, 3, 1, 2)).transpose(0, 2, 3, 1)
71+
return self.from_torch(batch.transpose(0, 3, 1, 2))[:, 0]
7272

7373

7474
class ConvBlock(nn.Module):

plugins/extract/mask/vgg_obstructed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def load_model(self) -> VGGObstructedModel:
3939
-------
4040
The loaded VGGObstructed model
4141
"""
42-
weights = GetModel("Nirkin_500_softmax_v2.pth", 8).model_path
42+
weights = GetModel("Nirkin_500_softmax_v2.pth", 5).model_path
4343
assert isinstance(weights, str)
4444
return T.cast(VGGObstructedModel, self.load_torch_model(VGGObstructedModel(),
4545
weights,

0 commit comments

Comments
 (0)