Skip to content

Commit 20200e1

Browse files
tink2123heavengate
authored andcommitted
fix some typo test=develop
1 parent 2b89f59 commit 20200e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/paddle/fluid/layers/detection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def yolov3_loss(x,
482482
raise TypeError("Attr anchor_mask of yolov3_loss must be list or tuple")
483483
if not isinstance(class_num, int):
484484
raise TypeError("Attr class_num of yolov3_loss must be an integer")
485-
if not isinstance(class_num, int):
485+
if not isinstance(use_label_smooth, int):
486486
raise TypeError("Attr ues_label_smooth of yolov3 must be a bool value")
487487
if not isinstance(ignore_thresh, float):
488488
raise TypeError(

python/paddle/fluid/tests/unittests/test_yolov3_loss_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def YOLOv3Loss(x, gtbox, gtlabel, gtscore, attrs):
7676
class_num = attrs["class_num"]
7777
ignore_thresh = attrs['ignore_thresh']
7878
downsample = attrs['downsample']
79-
#use_label_smooth = attrs['use_label_smooth']
79+
use_label_smooth = attrs['use_label_smooth']
8080
input_size = downsample * h
8181
x = x.reshape((n, mask_num, 5 + class_num, h, w)).transpose((0, 1, 3, 4, 2))
8282
loss = np.zeros((n)).astype('float32')

0 commit comments

Comments
 (0)