def debug(self, debugger, images, dets, output, scale=1):
    detection = dets.detach().cpu().numpy().copy()
    detection[:, :, :4] *= self.opt.down_ratio
    for i in range(1):
        img = images[i].detach().cpu().numpy().transpose(1, 2, 0)
        img = (((img * self.std) + self.mean) * 255).astype(np.uint8)
        pred = debugger.gen_colormap(output['hm'][i].detach().cpu().numpy())
        debugger.add_blend_img(img, pred, 'pred_hm_{:.1f}'.format(scale))
        debugger.add_img(img, img_id='out_pred_{:.1f}'.format(scale))
        for k in range(len(dets[i])):
            if (detection[(i, k, 4)] > self.opt.center_thresh):
                debugger.add_coco_bbox(detection[i, k, :4], detection[(i, k, (- 1))], detection[(i, k, 4)], img_id='out_pred_{:.1f}'.format(scale))
def debug(self, debugger, images, dets, output, scale=1):
    detection = dets.detach().cpu().numpy().copy()
    detection[:, :, :4] *= self.opt.down_ratio
    for i in range(1):
        img = images[i].detach().cpu().numpy().transpose(1, 2, 0)
        img = (((img * self.std) + self.mean) * 255).astype(np.uint8)
        pred = debugger.gen_colormap(output['hm'][i].detach().cpu().numpy())
        debugger.add_blend_img(img, pred, 'pred_hm_{:.1f}'.format(scale))
        debugger.add_img(img, img_id='out_pred_{:.1f}'.format(scale))
        for k in range(len(dets[i])):
            if (detection[(i, k, 4)] > self.opt.center_thresh):
                debugger.add_coco_bbox(detection[i, k, :4], detection[(i, k, (- 1))], detection[(i, k, 4)], img_id='out_pred_{:.1f}'.format(scale))