Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

train CA demo - Dead Kernel #1

Closed
21dmohan opened this issue Jun 25, 2019 · 8 comments
Closed

train CA demo - Dead Kernel #1

21dmohan opened this issue Jun 25, 2019 · 8 comments

Comments

@21dmohan
Copy link

Firstly, wow, this is amazing work! Thank you for sharing this :)

I am trying to run the demo, but my kernel keeps crashing on the third cell:

Screen Shot 2019-06-25 at 2 40 39 PM

Is there some way to fix this? Does me using tensorflow versus tensorflow_gpu make a difference? Or does that simply mean that the specs of my laptop are not good enough:

Screen Shot 2019-06-25 at 2 46 50 PM

Thank you in advanced!

@williamgilpin
Copy link
Owner

Hi @21dmohan thanks for checking out my project! It shouldn't be that intensive, if I recall correctly I also just used normal tensorflow, not tensorflow GPU. My specs also are pretty comparable:

Screen Shot 2019-06-25 at 15 01 57

Do you happen to know which line in cell 3 is crashing it? Is it potentially a problem with plt.imshow?
Or is it definitely the sess.run? If the latter, then I'm concerned that this might be a tensorflow version issue---when I wrote this I was using tensorflow 1.

@21dmohan
Copy link
Author

Interesting, it appears to be an issue with plt.imshow (the kernel dies at the fourth cell):

Screen Shot 2019-06-25 at 3 06 39 PM

Do you have any suggestions as to how to fix this?

@williamgilpin
Copy link
Owner

Okay that's a relief. What is out.shape? Does matplotlib otherwise work? For example,

plt.imshow(np.identity(3))

@21dmohan
Copy link
Author

It appears that my matplotlib is not working:

Screen Shot 2019-06-25 at 3 14 41 PM

I'll try and sort that out! Thank you so much! I'll let you know if I have any questions :)

@21dmohan
Copy link
Author

Quick update (in case someone else has this issue).

Following the suggestion from this post: https://superuser.com/questions/1406008/jupyter-kernel-dies-when-attempting-a-simple-plot-python

I just had to install nomkl: conda install nomkl

@williamgilpin
Copy link
Owner

That's good to know, thank you for posting your fix here. I hope you enjoy the package---let me know if you have any other questions.

@williamgilpin
Copy link
Owner

williamgilpin commented Feb 25, 2020

I'm re-opening this issue because I lost an hour to this bug today. Here is what I needed to do in order to get this code (and all my other tensorflow projects) functional today.

  1. Make a fresh conda environment, but don't use the latest version of python because tensorflow doesn't support it.

conda create -n nn python=3.6.9

  1. Install the following packages all together. For some reason everything breaks if nomkl is installed after the other packages

conda install nomkl numpy scipy scikit-learn numexpr tensorflow matplotlib

@williamgilpin williamgilpin reopened this Feb 25, 2020
@williamgilpin
Copy link
Owner

It looks like the latest version of TensorFlow plays nicely with everything, and so I will re-close this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants