I find your code for counting rel score_loss(graph.py/539) is:
score_loss = calc.bce_loss(tf.squeeze(relscores[:opt.obj_slotsnum_objs],1),
rel_scores_gt[:opt.obj_slotsnum_objs])
I think opt.obj_slots and num_objs should be replaced by opt.rel_slots and num_rels.
I find your code for counting rel score_loss(graph.py/539) is: score_loss = calc.bce_loss(tf.squeeze(relscores[:opt.obj_slotsnum_objs],1), rel_scores_gt[:opt.obj_slotsnum_objs]) I think opt.obj_slots and num_objs should be replaced by opt.rel_slots and num_rels.