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.
1 parent 5c5bfc4 commit fd692daCopy full SHA for fd692da
tiatoolbox/models/architecture/grandqc.py
@@ -66,8 +66,8 @@ def preproc(image: np.ndarray) -> np.ndarray:
66
def postproc(image: np.ndarray) -> np.ndarray:
67
"""Define post-processing for this model.
68
69
- This returns the class index with the minimum probability.
70
- In this model, this means selecting tissue class.
+ This simply applies argmin to obtain tissue class.
+ (Tissue = 0, Background = 1)
71
72
"""
73
return image.argmin(axis=-1)
@@ -108,9 +108,7 @@ def infer_batch(
108
109
model.eval()
110
111
- ####
112
imgs = batch_data
113
-
114
imgs = imgs.to(device).type(torch.float32)
115
imgs = imgs.permute(0, 3, 1, 2) # to NCHW
116
0 commit comments