确认测试通过时出现问题
Created by: Qian1995
输入:python ppdet/modeling/tests/test_architectures.py 运行结果: ss........EE
ERROR: test_test (main.TestYolov3)
Traceback (most recent call last): File "/project/PaddleDetection/ppdet/modeling/tests/decorator_helper.py", line 29, in fn fn(*args, **kwargs) File "ppdet/modeling/tests/test_architectures.py", line 57, in test_test test_fetches = model.eval(feed_vars) File "/project/PaddleDetection/ppdet/modeling/architectures/yolo.py", line 159, in eval return self.build(feed_vars, mode='test') File "/project/PaddleDetection/ppdet/modeling/architectures/yolo.py", line 91, in build return self.yolo_head.get_prediction(body_feats, im_size) File "/project/PaddleDetection/ppdet/modeling/anchor_heads/yolo_head.py", line 330, in get_prediction scale_x_y=scale_x_y) TypeError: yolo_box() got an unexpected keyword argument 'scale_x_y'
====================================================================== ERROR: test_train (main.TestYolov3)
Traceback (most recent call last): File "/project/PaddleDetection/ppdet/modeling/tests/decorator_helper.py", line 29, in fn fn(*args, **kwargs) File "ppdet/modeling/tests/test_architectures.py", line 49, in test_train train_fetches = model.train(feed_vars) File "/project/PaddleDetection/ppdet/modeling/architectures/yolo.py", line 156, in train return self.build(feed_vars, mode='train') File "/project/PaddleDetection/ppdet/modeling/architectures/yolo.py", line 85, in build gt_score, targets) File "/project/PaddleDetection/ppdet/modeling/anchor_heads/yolo_head.py", line 294, in get_loss self.prefix_name) File "/project/PaddleDetection/ppdet/modeling/losses/yolo_loss.py", line 88, in call name=prefix_name + "yolo_loss" + str(i)) TypeError: yolov3_loss() got an unexpected keyword argument 'scale_x_y'
Ran 12 tests in 4.010s
FAILED (errors=2, skipped=2)