Skip to content

Commit 5cf9785

Browse files
authored
Update Active-Contour-Loss.py
1 parent f7f6710 commit 5cf9785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Active-Contour-Loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
def active_contour_loss(y_true, y_pred, weight=10):
55
'''
6-
y_true, y_pred: tensor of shape (B, C, H, W)
6+
y_true, y_pred: tensor of shape (B, C, H, W), where y_true[:,:,region_in_contour] == 1, y_true[:,:,region_out_contour] == 0.
77
weight: scalar, length term weight.
88
'''
99
# length term

0 commit comments

Comments
 (0)