On line 27 in “train_one_epoch” in “engine.py”, just after,
“for images, targets in metric_logger.log_every(data_loader, print_freq, header):”
(Pdb) p type(images)
<class ‘tuple’>
(Pdb) p type(targets)
<class ‘tuple’>
(Pdb) p images[0].shape
torch.Size([3, 640, 426])
(Pdb) p images[1].shape
torch.Size([3, 427, 640])
(Pdb) p type(targets[0])
<class ‘dict’>
(Pdb) p targets[0].keys()
dict_keys([‘boxes’, ‘labels’, ‘image_id’, ‘area’, ‘iscrowd’])
(Pdb) p targets[0][‘boxes’]
tensor([[  2.8600,   0.0000, 426.0000, 640.0000],
[122.5200,   2.1600, 412.2500, 395.6800],
[113.8600, 346.6700, 225.6200, 386.8300]])