Traceback (most recent call last):


 "main.py", line 257, in <module>

main(args)


 "main.py", line 207, in main

args.clip_max_norm)


 "/home/ext_jack_gmail_com/detr/engine.py", line 37, in train_one_epoch

loss_dict = criterion(outputs, targets)


 "/home/ext_jack_gmail_com/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 726, in _call_impl

result = self.forward(*input, **kwargs)


 "/home/ext_jack_gmail_com/detr/models/detr.py", line 225, in forward

indices = self.matcher(outputs_without_aux, targets)


 "/home/ext_jack_gmail_com/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 726, in _call_impl

result = self.forward(*input, **kwargs)


 "/home/ext_jack_gmail_com/.local/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 15, in decorate_context

return func(*args, **kwargs)


 "/home/ext_jack_gmail_com/detr/models/matcher.py", line 74, in forward

cost_giou = -generalized_box_iou(box_cxcywh_to_xyxy(out_bbox), box_cxcywh_to_xyxy(tgt_bbox))


 "/home/ext_jack_gmail_com/detr/util/box_ops.py", line 53, in generalized_box_iou

iou, union = box_iou(boxes1, boxes2)


 "/home/ext_jack_gmail_com/detr/util/box_ops.py", line 28, in box_iou

lt = torch.max(boxes1[:, None, :2], boxes2[:, :2])
# [N,M,2]
RuntimeError: Expected object of scalar type c10::Half but got scalar type float for argument 'other'

Traceback (most recent call last):


 "/home/tom/PycharmProjects/centermask2/train_net.py", line 247, in <module>

args=(args,),


 "/home/tom/miniconda3/envs/detectron2/lib/python3.7/site-packages/detectron2/engine/launch.py", line 57, in launch

main_func(*args)


 "/home/tom/PycharmProjects/centermask2/train_net.py", line 235, in main

return trainer.train()


 "/home/tom/PycharmProjects/centermask2/train_net.py", line 97, in train

self.train_loop(self.start_iter, self.max_iter)


 "/home/tom/PycharmProjects/centermask2/train_net.py", line 86, in train_loop

self.run_step()


 "/home/tom/miniconda3/envs/detectron2/lib/python3.7/site-packages/detectron2/engine/train_loop.py", line 215, in run_step

loss_dict = self.model(data)


 "/home/tom/miniconda3/envs/detectron2/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__

result = self.forward(*input, **kwargs)


 "/home/tom/miniconda3/envs/detectron2/lib/python3.7/site-packages/detectron2/modeling/meta_arch/rcnn.py", line 130, in forward

_, detector_losses = self.roi_heads(images, features, proposals, gt_instances)


 "/home/tom/miniconda3/envs/detectron2/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__

result = self.forward(*input, **kwargs)


 "/home/tom/PycharmProjects/centermask2/centermask/modeling/centermask/center_heads.py", line 401, in forward

losses, mask_features, selected_mask, labels, maskiou_targets = self._forward_mask(features, proposals)


 "/home/tom/PycharmProjects/centermask2/centermask/modeling/centermask/center_heads.py", line 476, in _forward_mask

loss, selected_mask, labels, maskiou_targets = mask_rcnn_loss(mask_logits, proposals, self.maskiou_on)


 "/home/tom/PycharmProjects/centermask2/centermask/modeling/centermask/mask_head.py", line 153, in mask_rcnn_loss

mask_ratios = torch.max(mask_ratios, value_eps)
RuntimeError: Expected object of scalar type double but got scalar type float for argument 'other'