Skip to content

fix: merge/class-assignment helpers called inside per-image loop - #36

Open
andrewwhitecdw wants to merge 1 commit into
NVIDIA:masterfrom
andrewwhitecdw:bugfix/json-dataset-rel-76da24ff
Open

fix: merge/class-assignment helpers called inside per-image loop#36
andrewwhitecdw wants to merge 1 commit into
NVIDIA:masterfrom
andrewwhitecdw:bugfix/json-dataset-rel-76da24ff

Conversation

@andrewwhitecdw

@andrewwhitecdw andrewwhitecdw commented Jul 27, 2026

Copy link
Copy Markdown

Problem

fix: merge/class-assignment helpers called inside per-image loop

Fix

Replace:

        sbj_box_list.append(np.concatenate(
            (sbj_rois[idx, 1:] * inv_im_scale, sbj_gt_boxes_paired_w_det, sbj_det_boxes_paired_w_gt, sbj_gt_boxes_paired_w_gt)))
        obj_box_list.append(np.concatenate(
            (obj_rois[idx, 1:] * inv_im_scale, obj_det_boxes_paired_w_gt, obj_gt_boxes_paired_w_det, obj_gt_boxes_paired_w_gt)))
        _merge_paired_boxes_into_roidb(roidb, sbj_box_list, obj_box_list)
        _add_prd_class_assignments(roidb)

with:

        sbj_box_list.append(np.concatenate(
            (sbj_rois[idx, 1:] * inv_im_scale, sbj_gt_boxes_paired_w_det, sbj_det_boxes_paired_w_gt, sbj_gt_boxes_paired_w_gt)))
        obj_box_list.append(np.concatenate(
            (obj_rois[idx, 1:] * inv_im_scale, obj_det_boxes_paired_w_gt, obj_gt_boxes_paired_w_det, obj_gt_boxes_paired_w_gt)))
    _merge_paired_boxes_into_roidb(roidb, sbj_box_list, obj_box_list)
    _add_prd_class_assignments(roidb)

Files changed

  • lib/datasets_rel/json_dataset_rel.py

@andrewwhitecdw
andrewwhitecdw marked this pull request as ready for review July 27, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant