Object detection and sim-to-real 6D pose estimation