Training an object detector from scratch in PyTorch