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

session问题 #18

Open
yuu-Wang opened this issue Apr 1, 2023 · 0 comments
Open

session问题 #18

yuu-Wang opened this issue Apr 1, 2023 · 0 comments

Comments

@yuu-Wang
Copy link

yuu-Wang commented Apr 1, 2023

Traceback (most recent call last):
File "/home/root3203/wanniny/code/DDcGAN-master/PET-MRI image fusion/main.py", line 57, in
main()
File "/home/root3203/wanniny/code/DDcGAN-master/PET-MRI image fusion/main.py", line 32, in main
train(sources, MODEL_SAVE_PATH, EPOCHES, BATCH_SIZE, logging_period=LOGGING)
File "/home/root3203/wanniny/code/DDcGAN-master/PET-MRI image fusion/train.py", line 200, in train
saver.save(sess, save_path + str(epoch) + '/' + str(epoch) + '.ckpt')
File "/home/root3203/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1703, in save
{self.saver_def.filename_tensor_name: checkpoint_file})
File "/home/root3203/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 900, in run
run_metadata_ptr)
File "/home/root3203/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1058, in _run
raise RuntimeError('Attempted to use a closed Session.')
RuntimeError: Attempted to use a closed Session.
您好在跑完您的training后总是遇到这个错误请问怎么解决

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