Skip to content

Commit 01a5f72

Browse files
authored
Update boundary_loss.py
1 parent b8a1c37 commit 01a5f72

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/losses/boundary_loss.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ def forward(self, pred, gt):
5555
pred_b -= 1 - pred
5656

5757
# Visualization Boundary
58-
for i in range(c):
59-
gt_bv = gt_b.detach().cpu().numpy()
60-
# cv2.imshow('gt_b_cls.png'.format(i), gt_bv[0][i])
61-
cv2.imwrite('gt_b_cls{}.png'.format(i), gt_bv[0][i]*255)
62-
63-
pred_bv = pred_b.detach().cpu().numpy()
64-
#cv2.imshow('pred_b_cls{}'.format(i), pred_bv[0][i])
65-
cv2.imwrite('pred_b_cls{}.png'.format(i), pred_bv[0][i]*255)
58+
# for i in range(c):
59+
# gt_bv = gt_b.detach().cpu().numpy()
60+
# # cv2.imshow('gt_b_cls.png'.format(i), gt_bv[0][i])
61+
# cv2.imwrite('gt_b_cls{}.png'.format(i), gt_bv[0][i]*255)
62+
#
63+
# pred_bv = pred_b.detach().cpu().numpy()
64+
# #cv2.imshow('pred_b_cls{}'.format(i), pred_bv[0][i])
65+
# cv2.imwrite('pred_b_cls{}.png'.format(i), pred_bv[0][i]*255)
6666

6767

6868
# reshape

0 commit comments

Comments
 (0)