setting up things for training with two elevations and the new loss in detect