Spaces:
Running
Running
Fixed postprocessing typo in lungmask usage
Browse files
lungtumormask/dataprocessing.py
CHANGED
@@ -48,7 +48,7 @@ def mask_lung(scan_path, batch_size=20):
|
|
48 |
pls = torch.max(prediction, 1)[1].detach().cpu().numpy().astype(np.uint8)
|
49 |
timage_res = np.vstack((timage_res, pls))
|
50 |
|
51 |
-
outmask = lungmask.utils.
|
52 |
|
53 |
|
54 |
outmask = np.asarray(
|
|
|
48 |
pls = torch.max(prediction, 1)[1].detach().cpu().numpy().astype(np.uint8)
|
49 |
timage_res = np.vstack((timage_res, pls))
|
50 |
|
51 |
+
outmask = lungmask.utils.postprocessing(timage_res)
|
52 |
|
53 |
|
54 |
outmask = np.asarray(
|