WARNING:tensorflow:From C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\ops\math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
WARNING:tensorflow:From C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\saver.py:1266: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
---------------------------------
Run id: CADOAS
Log directory: /tmp/tflearn_logs/
---------------------------------
Training samples: 26
Validation samples: 0
--
Traceback (most recent call last):
File "main.py", line 79, in <module>
model.load("model.tflearn")
File "C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tflearn\models\dnn.py", line 308, in load
self.trainer.restore(model_file, weights_only, **optargs)
File "C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tflearn\helpers\trainer.py", line 490, in restore
self.restorer.restore(self.session, model_file)
File "C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 1268, in restore
+ compat.as_text(save_path))
ValueError: The passed save_path is not a valid checkpoint: C:\Users\IOTA\Desktop\chatbot\json file\model.tflearn
Во время обработки вышеуказанного исключения произошло другое исключение:
Traceback (most recent call last):
File "main.py", line 81, in <module>
model.fit(training, output, n_epoch=1000, batch_size=8, show_metric=True)
File "C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tflearn\models\dnn.py", line 216, in fit
callbacks=callbacks)
File "C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tflearn\helpers\trainer.py", line 339, in fit
show_metric)
File "C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tflearn\helpers\trainer.py", line 816, in _train
tflearn.is_training(True, session=self.session)
File "C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tflearn\config.py", line 95, in is_training
tf.get_collection('is_training_ops')[0].eval(session=session)
File "C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\ops.py", line 695, in eval
return _eval_using_default_session(self, feed_dict, self.graph, session)
File "C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\ops.py", line 5181, in _eval_using_default_session
return session.run(tensors, feed_dict)
File "C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 929, in run
run_metadata_ptr)
File "C:\Users\IOTA\AppData\Local\Programs\Python\Python36\lib\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.
Я получаю эту ошибку и не могу найти решение, я использую:
- Python - 3,6
- TensorFlow - 1,13
Я делаю это https://techwithtim.net/tutorials/ai-chatbot/part-4/
заранее спасибо