train ppyolo errror for voc format
开放中
train ppyolo errror for voc format
Created by: toplinuxsir
python tools/train.py -c ./configs/ppyolo/ppyolo.yml
The error below :
2020-08-28 11:02:56,336-WARNING: The actual image width: 2304 is not equal to the width: 3456.0 in annotation, and update sample['w'] by actual image width.
2020-08-28 11:02:56,633-WARNING: recv endsignal from outq with errmsg[consumer[consumer-796-1] exits for reason[consumer[consumer-796-4] exits for reason[consumer[consumer-796-0] exits
for reason[consumer[consumer-796-7] exits for reason[consumer[consumer-796-6] exits for reason[consumer[consumer-796-5] exits for reason[consumer[consumer-796-2] failed to map with er
ror:[index 61 is out of bounds for axis 3 with size 52]]]]]]]]
2020-08-28 11:02:58,517-WARNING: recv endsignal from outq with errmsg[consumer[consumer-796-3] exits for reason[consumer[consumer-796-1] exits for reason[consumer[consumer-796-4] exits
for reason[consumer[consumer-796-0] exits for reason[consumer[consumer-796-7] exits for reason[consumer[consumer-796-6] exits for reason[consumer[consumer-796-5] exits for reason[cons
umer[consumer-796-2] failed to map with error:[index 61 is out of bounds for axis 3 with size 52]]]]]]]]]
2020-08-28 11:02:58,517-WARNING: Your reader has raised an exception!
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 870, in run
Created by: heavengate
是不是有其他图像的标反了,可以在下面这个代码里把具体报错的图片路径打印一下 https://github.com/PaddlePaddle/PaddleDetection/blob/bc453fb20086b9466fa052fe08e67b5b7b1fee4a/ppdet/data/transform/operators.py#L126
Created by: penghaoran
@penghaoran 自己写了一个脚本,我是从yolo转到VOC 格式,如果你正好也是从yolo转换来的格式,我可以共享给你。
谢谢你的回复哦。我是直接用labelimg生成的VOC, 已经找到原因了,图片太大了,我把图片质量降低后就没出现这个问题。可能是他们源码对高清图处理上有点问题。
标注文件里的height和width和python cv2.imead读入的height和width一致么
是的,标注文件跟我直接用cv2读出来的大小一直,标注文件是labelimg生成的,不是自己转的,应该也没问题。而且,我什么都没改动,仅仅把图片质量降低,大小压缩到1000kb以内后就好了。
Created by: wangxinxin08
@penghaoran 请问图片多大,我们测试看下。
4032*3024 5MB
使用6282*9000,大小为5.799MB的图片进行测试没有发现h和w读错的问题,代码里面也看过了,没有逻辑错误。我看你打印的h和w,一个是int,一个是float,你是对代码进行了修改吗?
为什么我的标注和图片的实际宽高是一样的,但是代码打印出来,程序把宽高都读成了宽。 'im_id': array([136]), 'h': 4032, 'w': 4032.0,
@wangxinxin08 没有修改过代码诶,我再试试
好的,如果还有问题的话,可以贴一下Paddle的版本号或者hash号,PaddleDetection的版本号或者hash号以及配置文件,便于定位错误