-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
can't load my trained model #3278
Comments
Here is the command line dump when it attempts to rerun then exists immediately INFO:mlagents_envs:Connected new brain: |
Using the |
ill give that a try today, thanks |
Ok tried that, this time it didn't end. However, the model doesn't seem to have remembered anything. It looks as confused as when it was initially executed. Step count seems back to the beginning. |
MY BAD!! It's working now, I forgot to add the --load parameter this time. Looks GREAT, thank you |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
Can't load the trained model to continue the training session.
The command is the same to start the training but I added '--load' to the command line to continue. The moment I press Play in Unity the session seems to just end.
See below for command-line dump
This is "Windows 10"
C:\Users\james>pip3 show mlagents
Name: mlagents
Version: 0.13.1
Summary: Unity Machine Learning Agents
Home-page: https://github.com/Unity-Technologies/ml-agents
Author: Unity Technologies
Author-email: ML-Agents@unity3d.com
License: UNKNOWN
Location: c:\users\james\appdata\local\programs\python\python36\lib\site-packages
Requires: h5py, Pillow, tensorflow, mlagents-envs, pyyaml, jupyter, pypiwin32, grpcio, matplotlib, numpy, protobuf
Required-by:
C:\Users\james>pip3 show tensorflow
Name: tensorflow
Version: 2.0.0
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: packages@tensorflow.org
License: Apache 2.0
Location: c:\users\james\appdata\local\programs\python\python36\lib\site-packages
Requires: wheel, google-pasta, six, gast, termcolor, keras-preprocessing, absl-py, grpcio, keras-applications, tensorboard, numpy, astor, opt-einsum, protobuf, tensorflow-estimator, wrapt
Required-by: mlagents
C:\ml-agents>mlagents-learn config/trainer_config.yaml --run-id=thirdRun --train --load
WARNING:tensorflow:From c:\users\james\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\compat\v2_compat.py:65: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
Version information:
ml-agents: 0.13.1,
ml-agents-envs: 0.13.1,
Communicator API: API-13,
TensorFlow: 2.0.0
INFO:mlagents.trainers:CommandLineOptions(debug=False, num_runs=1, seed=-1, env_path=None, run_id='thirdRun', load_model=True, train_model=True, save_freq=50000, keep_checkpoints=5, base_port=5005, num_envs=1, curriculum_folder=None, lesson=0, no_graphics=False, multi_gpu=False, trainer_config_path='config/trainer_config.yaml', sampler_file_path=None, docker_target_name=None, env_args=None, cpu=False, width=84, height=84, quality_level=5, time_scale=20, target_frame_rate=-1)
INFO:mlagents_envs:Listening on port 5004. Start training by pressing the Play button in the Unity Editor.
The text was updated successfully, but these errors were encountered: