PaddleDetection安装后测试例子无法通过got an unexpected keyword argument 'scale_x_y'
Created by: cucuzg
安装后测试例子无法通过,报错如下
` [work@hostname PaddleDetection]$ python3 ppdet/modeling/tests/test_architectures.py ss........EE
ERROR: test_test (main.TestYolov3)
Traceback (most recent call last): File "/home/work/wangleilei01/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 "/home/work/wangleilei01/PaddleDetection/ppdet/modeling/architectures/yolo.py", line 162, in eval return self.build(feed_vars, mode='test') File "/home/work/wangleilei01/PaddleDetection/ppdet/modeling/architectures/yolo.py", line 93, in build body_feats, im_size, exclude_nms=exclude_nms) File "/home/work/wangleilei01/PaddleDetection/ppdet/modeling/anchor_heads/yolo_head.py", line 437, 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 "/home/work/wangleilei01/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 "/home/work/wangleilei01/PaddleDetection/ppdet/modeling/architectures/yolo.py", line 159, in train return self.build(feed_vars, mode='train') File "/home/work/wangleilei01/PaddleDetection/ppdet/modeling/architectures/yolo.py", line 85, in build gt_score, targets) File "/home/work/wangleilei01/PaddleDetection/ppdet/modeling/anchor_heads/yolo_head.py", line 401, in get_loss self.prefix_name) File "/home/work/wangleilei01/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 5.219s `