R2CNN.pytorch icon indicating copy to clipboard operation
R2CNN.pytorch copied to clipboard

'BoxList' object has no attribute 'quad_bbox'

Open yoyoyo-yo opened this issue 5 years ago • 12 comments

❓ Questions and Help

yoyoyo-yo avatar Oct 22 '19 22:10 yoyoyo-yo

Thank you for your gread job!

I installed and used inference_engine.py. Then, I got

Traceback (most recent call last):
  File "inference_engine.py", line 230, in <module>
    canvas = detector.run_on_opencv_image(img)
  File "inference_engine.py", line 93, in run_on_opencv_image
    result = self.overlay_boxes(result, top_predictions)
  File "inference_engine.py", line 172, in overlay_boxes
    quad_boxes = predictions.quad_bbox
AttributeError: 'BoxList' object has no attribute 'quad_bbox'

What shold I do?

yoyoyo-yo avatar Oct 22 '19 22:10 yoyoyo-yo

This implement doesn't include 11x3 and 3x11 RoiAligan or RoiPooling, and inclined nms agorithm. This is a good project for learning, but it is too far from the original paper.

AlfengYuan avatar Dec 03 '19 02:12 AlfengYuan

@yoyoyo-yo It seems like you have installed the original version of MaskRCNN-benchmark, so it points to another BoxList class, which has no implementation of Quad_bbox.

Xiangyu-CAS avatar Dec 04 '19 08:12 Xiangyu-CAS

@yyfhaku This version only implemented the major though of R2CNN, that's the rotated region regression. Actually, there are still lots of hyperparamters and tricks need to be carefully adjusted.

BTW: 113 and 311 proved to be not working well in general case

Xiangyu-CAS avatar Dec 04 '19 08:12 Xiangyu-CAS

嗨, 请问这里最后预测的还是按照8个点来吗?而不是论文中说的, x1, y1, x2, y2 和h? Inclined NMS 算IoU的时候实际上就是Skew IoU 是吗? 多谢!

yangkai798 avatar Dec 30 '19 08:12 yangkai798

是啊,你是对的,这个跟论文完全不一样,但是可以学习,可以参考它的自己定义数据流,试着去复现

---Original--- From: "yangkai798"<[email protected]> Date: Mon, Dec 30, 2019 16:34 PM To: "Xiangyu-CAS/R2CNN.pytorch"<[email protected]>; Cc: "Mention"<[email protected]>;"yyfhaku"<[email protected]>; Subject: Re: [Xiangyu-CAS/R2CNN.pytorch] 'BoxList' object has no attribute 'quad_bbox' (#2)

嗨, 请问这里最后预测的还是按照8个点来吗?而不是论文中说的, x1, y1, x2, y2 和h? Inclined NMS 算IoU的时候实际上就是Skew IoU 是吗? 多谢!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

AlfengYuan avatar Dec 30 '19 08:12 AlfengYuan

@Xiangyu-CAS I followed your INSTALL.md, but got same error. This looks like maskrcnn_benchmark path error?

yoyoyo-yo avatar Dec 31 '19 00:12 yoyoyo-yo

There is no need to clone another maskrcnn-benchmark, just run "python setup.py build develop" in root dir. The installation instructions need to be improved!

xiabc612 avatar Jan 13 '20 09:01 xiabc612

@xiabc612 you are right... I didn't update installation.md, so it's the same as maskrcnn-benchmark. I will revise it. Thank you

Xiangyu-CAS avatar Jan 13 '20 12:01 Xiangyu-CAS

@yoyoyo-yo as xiabc612 said, there's no need to git clone another maskrcnn-benchmark, I have updated installation instructions. It's my fault, sorry for it.

Xiangyu-CAS avatar Jan 13 '20 12:01 Xiangyu-CAS

@yangkai798 是按照4个点8个参数来的,[x1, y1, x2, y2, h]也可以,后者效果在ICDAR上更好一点点,但区别应该不大,用在遥感里大家更倾向用4个点。 Inclinded NMS这里还没实现...

Xiangyu-CAS avatar Jan 13 '20 12:01 Xiangyu-CAS

请问这个能否在自己的数据集实现?

YQ-Yang avatar Dec 02 '20 08:12 YQ-Yang