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

Exception ignored in: <bound method BaseSession.__del__ of <tensorflow.python.client.session.Session object at 0x7f1bf88e85f8>> #5

Open
mrmrn opened this issue Mar 21, 2018 · 6 comments

Comments

@mrmrn
Copy link

mrmrn commented Mar 21, 2018

for testing I set epoch to 2
after epoch 2 passed it saved model weights.001-0.6057.hdf5 and this is the output:

Epoch 00002: val_acc improved from 0.60572 to 0.66245, saving model to weights.002-0.6624.hdf5
Exception ignored in: <bound method BaseSession.__del__ of <tensorflow.python.client.session.Session object at 0x7f1bf88e85f8>>
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 702, in __del__
TypeError: 'NoneType' object is not callable
marn@marn-HP-Compaq-Elite-8300-SFF ~/c/t/CNN-text-classification-keras> ls
_config.yml  data_helpers.py  __pycache__/  weights.001-0.6057.hdf5
data/        model.py         README.md     weights.002-0.6624.hdf5

is the error important? And how can I use this trained models?
thank you.

@bhaveshoswal
Copy link
Owner

Have you made any changes in the code if any please share with me?
Please check all versions of python packages and others.

@mrmrn
Copy link
Author

mrmrn commented Mar 22, 2018

I am using tensorflow 1.5.0 and keras 2.1.5
and I didnt edit the code except epoch=2

@bhaveshoswal
Copy link
Owner

Tensorflow 1.4.1
Keras 2.1.2
Try these versions first I have tested on these versions

@mrmrn
Copy link
Author

mrmrn commented Mar 23, 2018

i think it is just an exception ignored.
now,I have weights.002-0.6624.hdf5. how can I use it?

@bhaveshoswal
Copy link
Owner

there is keras function to load weights

@mrmrn
Copy link
Author

mrmrn commented Mar 23, 2018

you mean somethiong like model = load_model('weights.002-0.6624.hdf5') ?
but I dont know how can I use the model after loading it.
could you please guide me?
thank you

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