KaihuaTang / Scene-Graph-Benchmark.pytorch

A new codebase for popular Scene Graph Generation methods (2020). Visualization & Scene Graph Extraction on custom images/datasets are provided. It's also a PyTorch implementation of paper “Unbiased Scene Graph Generation from Biased Training CVPR 2020”
MIT License
1.03k stars 228 forks source link

Dataloader bug #109

Closed xuewyang closed 3 years ago

xuewyang commented 3 years ago

🐛 Bug

Hi Kaihua, Thank you for your wonderful work.

Is here a bug? Should it be like all_boxes[:, 2:] = all_boxes[:, :2] + all_boxes[:, 2:] / 2? cx, cy are the center coordinates, right? Thank you.

waxnkw commented 3 years ago

bug Bug

Hi Kaihua, Thank you for your wonderful work.

Is here a bug? Should it be like all_boxes[:, 2:] = all_boxes[:, :2] + all_boxes[:, 2:] / 2? cx, cy are the center coordinates, right? Thank you.

it seems that all_boxes[:, :2] has already been modifed from cx, cy to x1, x2 in the previous line of the line you quoted.

xuewyang commented 3 years ago

bug Bug

Hi Kaihua, Thank you for your wonderful work. Is here a bug? Should it be like all_boxes[:, 2:] = all_boxes[:, :2] + all_boxes[:, 2:] / 2? cx, cy are the center coordinates, right? Thank you.

it seems that all_boxes[:, :2] has already been modifed from cx, cy to x1, x2 in the previous line of the line you quoted.

Yes, that is right. Thank you.