Skip to content

Commit fd692da

Browse files
committed
update docstring
1 parent 5c5bfc4 commit fd692da

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tiatoolbox/models/architecture/grandqc.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def preproc(image: np.ndarray) -> np.ndarray:
6666
def postproc(image: np.ndarray) -> np.ndarray:
6767
"""Define post-processing for this model.
6868
69-
This returns the class index with the minimum probability.
70-
In this model, this means selecting tissue class.
69+
This simply applies argmin to obtain tissue class.
70+
(Tissue = 0, Background = 1)
7171
7272
"""
7373
return image.argmin(axis=-1)
@@ -108,9 +108,7 @@ def infer_batch(
108108
"""
109109
model.eval()
110110

111-
####
112111
imgs = batch_data
113-
114112
imgs = imgs.to(device).type(torch.float32)
115113
imgs = imgs.permute(0, 3, 1, 2) # to NCHW
116114

0 commit comments

Comments
 (0)