We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc875f commit fe1b384Copy full SHA for fe1b384
torchvision/models/detection/roi_heads.py
@@ -444,7 +444,8 @@ def check_targets(self, targets):
444
445
def select_training_samples(self, proposals, targets):
446
self.check_targets(targets)
447
- gt_boxes = [t["boxes"] for t in targets]
+ dtype = proposals[0].dtype
448
+ gt_boxes = [t["boxes"].to(dtype) for t in targets]
449
gt_labels = [t["labels"] for t in targets]
450
451
# append ground-truth bboxes to propos
0 commit comments