使用paddlepaddle1.8版本使用PaddleDetection的时候,提示yolov3_loss() got an unexpected keyword argument 'scale_x_y'
Created by: a2824256
运行教程
https://paddledetection.readthedocs.io/tutorials/INSTALL_cn.html#id4
执行测试是否安装成功的命令的时候
python ppdet/modeling/tests/test_architectures.py
提示
TypeError: yolov3_loss() got an unexpected keyword argument 'scale_x_y'
后来发现
PaddleDetection\ppdet\modeling\losses\yolo_loss.py这个文件第87行,
loss = fluid.layers.yolov3_loss这一句,yolov3_loss含有scale_x_y这个参数,
实际上paddle\fluid\layers\detection.py第925行,yolov3_loss这个函数不含有scale_x_y这个参数