Skip to content

Commit 75c9dfb

Browse files
committed
Delete the useless return values.
1 parent 980b4da commit 75c9dfb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

py_sod_metrics/multiscale_iou.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def shrink_by_grid(self, image: np.ndarray, cell_size: int) -> np.ndarray:
4747
if pad_w != 0:
4848
pad_w = cell_size - pad_w
4949
if pad_h != 0 or pad_w != 0:
50-
image = np.pad(image, ((pad_h, 0), (pad_w, 0)), mode="constant", constant_values=0)
50+
image = np.pad(
51+
image, ((pad_h, 0), (pad_w, 0)), mode="constant", constant_values=0
52+
)
5153

5254
h = image.shape[0]
5355
w = image.shape[1]
@@ -78,7 +80,6 @@ def step(self, pred: np.ndarray, gt: np.ndarray):
7880

7981
msiou = self.cal_msiou(pred, gt)
8082
self.msious.append(msiou)
81-
return msiou
8283

8384
def get_results(self) -> dict:
8485
"""Return the results about MSIoU.

0 commit comments

Comments
 (0)