bnsreenu / python_for_microscopists

https://www.youtube.com/channel/UC34rW-HtPJulxr5wp2Xa04w?sub_confirmation=1
MIT License
3.78k stars 2.35k forks source link

Problem while executing "232_brats2020_get_data_ready.py": System halts after printing "Now preparing image and masks number: 103" #78

Closed CodeStudio8 closed 5 months ago

CodeStudio8 commented 5 months ago

I am continuously getting the issue on anaconda prompt and jupyter notebook/lab. system halts after converting image 103. In jupyter notebook/lab kernel restarts and in anaconda prompt, system halts without any error. any suggestions? Thank you

CodeStudio8 commented 5 months ago

The problem was that program got stuck and halted when it was converting images 104 and 105 into numpy arrays. I tried to execute the program on jupyter notebook and spyder, but problem persisted. Then I simply removed these two images from the train folder and tried again. It worked! Don't know the exact reason but program worked when I removed these two images. Hope it helps