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

Attempted to use a closed Session. #34

Open
SolicTous opened this issue Oct 2, 2020 · 1 comment
Open

Attempted to use a closed Session. #34

SolicTous opened this issue Oct 2, 2020 · 1 comment

Comments

@SolicTous
Copy link

I have an issue with Attempt to use a closed Session in the line with "queue_input_val: val_batch"
What is the reason, by which it happens.

.................
Step: 99 LR: 0.0001000 Feature: 21.95053 Pixel: 0.33819 TV: 0.00000 Time: 0.18408
Step: 100 LR: 0.0001000 Feature: 18.16217 Pixel: 0.31331 TV: 0.00000 Time: 0.17411
Model saved in file: /home/developer/PycharmProjects/WCT-TF/models/trained/relu1_1/model.ckpt-100
2020-10-01 15:43:06.942311: W tensorflow/core/kernels/queue_base.cc:285] _1_fifo_queue: Skipping cancelled dequeue attempt with queue not closed
INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.CancelledError'>, Dequeue operation was cancelled
[[{{node fifo_queue_Dequeue}}]]
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "train.py", line 116, in enqueue
queue_input_val: val_batch})
File "/home/developer/PycharmProjects/Inpaint_PConv-Keras/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/home/developer/PycharmProjects/Inpaint_PConv-Keras/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1075, in _run
raise RuntimeError('Attempted to use a closed Session.')
RuntimeError: Attempted to use a closed Session.

@SolicTous
Copy link
Author

I have tried to replace unqueue in with.... but didn't help

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

1 participant