shalabh147/Brain-Tumor-Segmentation-and-Survival-Prediction-using-Deep-Neural-Networks

error

KanchanRani opened this issue · 7 comments

Hi
Thanks in Advance
when i try to Run the -> Brain-Tumor-Segmentation-and-Survival-Prediction-using-Deep-Neural-Networks/2D_2class_models/2D_axis1/2d_axis1.ipynb file in Jupyternotebook it gives the following error.
please resolve this issue.

Capture
Capture1

Can you please try printing class weights before line 295 and show me the output?

Okay, data loading looks correct to me. Can you please remove the last argument class_weight in model.fit function and run the script? class weights is supposed to tackle class imbalance problem, but there seems some problem with that so maybe you can try training without that argument.

Now, It is executing smoothly. I have two doubts:-

  1. Have you trained this model on all HGG Patient scans for all slices?
  2. Model. save is written two times at line 303 and 346. why it is so?
    Thank you.
  1. Have you trained this model on all HGG Patient scans for all slices?

No, we have trained only on first 180 patient scans, as can be seen in the looping range. Also only those 2D slices have been used for training which contain both tumor and non-tumor regions, to prevent bias in the model.

  1. Model. save is written two times at line 303 and 346. why it is so?

No special reason, the first model.save saves the model after every epoch of training. This is a good practice usually since there may occur instances of interruption while training the model. So to avoid training from scratch, we save the model after every epoch. Model.save in the end is kind of redundant and not really needed.

Thank you for clearing my all doubts!!!

Hi
when i try to execute 2d_axis1_results_2class.ipynb
it gives following error
0
1
2
3
4
Kindly resolve this issue.