raghakot / keras-vis

Neural network visualization toolkit for keras
https://raghakot.github.io/keras-vis
MIT License
2.98k stars 664 forks source link

Segmentation fault (core dumped) when import vis.utils #61

Closed samshipengs closed 7 years ago

samshipengs commented 7 years ago

Installation is up-to-date with the master branch of keras-vis. Latest tensorflow and keras. *python3 (running on ubuntu 16.04 LTS)

When I was trying to import in ipython3: from vis.utils import utils Ipython3 would just shut down and output "Segmentation fault (core dumped)".

Anyone experiences this?

TimZaman commented 7 years ago

I can hardly believe this is because of just from vis.utils import utils. Try to gather more clues.

samshipengs commented 7 years ago

Python 3.5.2 (default, Nov 17 2016, 17:05:23) Type 'copyright', 'credits' or 'license' for more information IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from vis.utils import utils

Segmentation fault (core dumped)

@TimZaman This is what I got.

Then I tried install it with python2, and it worked.

sam@sam-ubuntu:~$ python2 Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information.

>> from vis.utils import utils
Using TensorFlow backend.
>>

I guess I will run things in python2 for now then.

raghakot commented 7 years ago

Closing this issue for now. Feel free to reopen if this is recurring. It might have something to do with your tensorflow installation.