to repair your phone try this solution :
enter on fastboot mode (volume down + power)
than boot with a twrp_leo.img (for mi note pro)
sudo fastboot boot twrp_leo.img
after you can use adb to upload a good rom to your phone :
adb push your_rom.zip /sdcard
than use twrp install to install...