Niger's military leaders have released more than 50 detainees, including former ministers in the government they toppled in 2023.