SHTUPLUS / PySGG

The toolkit for scene graph generation
Other
71 stars 15 forks source link

a BGNN MODEL crucial bug need to be fixed #8

Closed rafa-cxg closed 2 years ago

rafa-cxg commented 2 years ago

Hi there, I find a bug in may cause big mistake: In _pysgg/modeling/roi_heads/relation_head/rel_proposal_network/loss.py , "loss_eval_hybrid_level"_ function mistakenly regard the last bit-logit as background ,however , following code in PYSGG regards first bit-logit as background original code: mulitlabel_logits = selected_cls_logits[:, :-1] bin_logits = selected_cls_logits[:, -1] and change this to: mulitlabel_logits = selected_cls_logits[:, 1:] bin_logits = selected_cls_logits[:, 0] this is mean_recall@100 result. hightest point is 30.5, and result is very unstable: image

this is result after changing: highest point is 31. of course, still not good as author mentioned in paper.(I wonder why we can not get mentioned result?) image

After fixing this bug , the evaluation result notably better than before.

Scarecrow0 commented 2 years ago
rafa-cxg commented 2 years ago

Thanks for your patient. I realized that, my negligence