Sentdex / pygta5

Explorations of Using Python to play Grand Theft Auto 5.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MODEL_NAME is giving such kind of error.

tanaymitkari1 opened this issue · comments

NOTE : I am using this code in GTA san andreas

Error in test_model.py

WARNING:tensorflow:From C:\python3\lib\site-packages\tflearn\initializations.py:119: UniformUnitScaling.init (from tensorflow.python.ops.init_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.initializers.variance_scaling instead with distribution=uniform to get equivalent behavior.
WARNING:tensorflow:From C:\python3\lib\site-packages\tflearn\objectives.py:66: calling reduce_sum (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead
Traceback (most recent call last):
File "D:\Projects\Artificial Intelligance\GTASDC\test_model.py", line 48, in
model.load(MODEL_NAME)
File "C:\python3\lib\site-packages\tflearn\models\dnn.py", line 308, in load
self.trainer.restore(model_file, weights_only, **optargs)
File "C:\python3\lib\site-packages\tflearn\helpers\trainer.py", line 490, in restore
self.restorer.restore(self.session, model_file)
File "C:\python3\lib\site-packages\tensorflow\python\training\saver.py", line 1538, in restore
+ compat.as_text(save_path))
ValueError: The passed save_path is not a valid checkpoint: D:\Projects\Artificial Intelligance\GTASDC\pygta5-car-fast-0.001-alexnetv2-10-epochs-300K-data.model

Same , i have a problem for using a pre trained model .. (The passed save_path is not a valid checkpoint+project location )