Training and testing set up for location-aware detectors