ContrastiveLosses4VRD icon indicating copy to clipboard operation
ContrastiveLosses4VRD copied to clipboard

maybe bug in model_builder_rel.py(pytorch1_0 version) ?

Open yrcong opened this issue 5 years ago • 0 comments

Hi,

for the code of pytorch1.0 version, in model_builder_rel.py line 504

_, prd_bias_scores_sbj_pos, _, ttl_cls_scores_sbj_pos, _, _, prd_cls_feats = \ self.RelDN(spo_feat_sbj_pos, spt_feat_sbj_pos, sbj_labels_sbj_pos_fg, obj_labels_sbj_pos_fg, sbj_feat_sbj_pos, obj_feat_sbj_pos)

7 elements are expected but RelDN (reldn_heads.py) only returns 6 (line 136). return prd_vis_scores, prd_bias_scores, prd_spt_scores, ttl_cls_scores, sbj_cls_scores, obj_cls_scores

For the master branch there is not this problem..

Is this only a bug or something that i didn't understand or made mistakes?

thanks a lot

yrcong avatar Feb 25 '20 15:02 yrcong