udacity / deep-learning-v2-pytorch

Projects and exercises for the latest Deep Learning ND program https://www.udacity.com/course/deep-learning-nanodegree--nd101
MIT License
5.26k stars 5.32k forks source link

kernel keeps dying #403

Open jagja opened 2 years ago

jagja commented 2 years ago

trying to run the jupyter notebook, the kernel dies usually when matplotlib functions are called. have tried several suggested workarounds, issue remains.

jhmao697 commented 8 months ago

is your memory enough. I have same problem while dealing with big data model.

Siddharth-Latthe-07 commented 1 month ago

possible soultions for the above issue:-

  1. Check Matplotlib Backend:- Certain backends of matplotlib can sometimes cause issues sample snippet:-
    
    import matplotlib
    matplotlib.use('agg')  # Or try 'TkAgg', 'Qt5Agg', etc.

import matplotlib.pyplot as plt



2.  update the version of the dependencies and also check the memory usage
3.  Also might try running it different env
4. If the above doesn't work, try installing it again

Hope this helps
Thanks