bubbliiiing / efficientdet-pytorch

这是一个efficientdet-pytorch的源码,可以用于训练自己的模型。
MIT License
305 stars 61 forks source link

predict遇到问题 #54

Open yangkang121 opened 11 months ago

yangkang121 commented 11 months ago

Traceback (most recent call last): File "E:\yk\Code\efficientdet-pytorch\predict.py", line 77, in r_image = efficientdet.detect_image(image, crop = crop, count=count) File "E:\yk\Code\efficientdet-pytorch\efficientdet.py", line 216, in detect_image draw.rectangle([left + i, top + i, right - i, bottom - i], outline=self.colors[c]) File "D:\Anaconda\envs\objectbox\lib\site-packages\PIL\ImageDraw.py", line 296, in rectangle self.draw.draw_rectangle(xy, ink, 0, width) ValueError: x1 must be greater than or equal to x0

作者大大好,我在使用d3预训练权重进行预测时,出现了这个错误,不知道是什么原因

yangkang121 commented 11 months ago

已解决