Skip to content

Commit

Permalink
Delete the useless return values.
Browse files Browse the repository at this point in the history
  • Loading branch information
lartpang committed Dec 18, 2023
1 parent 980b4da commit 75c9dfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py_sod_metrics/multiscale_iou.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def shrink_by_grid(self, image: np.ndarray, cell_size: int) -> np.ndarray:
if pad_w != 0:
pad_w = cell_size - pad_w
if pad_h != 0 or pad_w != 0:
image = np.pad(image, ((pad_h, 0), (pad_w, 0)), mode="constant", constant_values=0)
image = np.pad(
image, ((pad_h, 0), (pad_w, 0)), mode="constant", constant_values=0
)

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

msiou = self.cal_msiou(pred, gt)
self.msious.append(msiou)
return msiou

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

0 comments on commit 75c9dfb

Please sign in to comment.