Domain adaptation for pedestrian detection