Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
17.19k stars 4.16k forks source link

No he conseguido instalar correctamente el paquete mlagents #4124

Closed juahidpal closed 4 years ago

juahidpal commented 4 years ago

El error que me sale es este: Successfully built termcolor Installing collected packages: tensorflow-estimator, gast, scipy, opt-einsum, astunparse, termcolor, keras-preprocessing, google-pasta, tensorboard-plugin-wit, tensorboard, tensorflow, attrs, cattrs, pywin32, pypiwin32, mlagents ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_estimator\python\estimator\canned\linear_optimizer\python\utils\pycache\sharded_mutable_dense_hashtable.cpython-37.pyc'

PS C:\Users\Usuario> mlagents-learn --help mlagents-learn : El término 'mlagents-learn' no se reconoce como nombre de un cmdlet, función, archivo de script o programa ejecutable. Compruebe si escribió correctamente el nombre o, si incluyó una ruta de acceso, compruebe que dicha ruta es correcta e inténtelo de nuevo. En línea: 1 Carácter: 1

¿Como lo puedo solucionar?.

Gracias.

abhayraw1 commented 4 years ago

The pip generated error suggests that the pip installation did not succeed. You can try installing using the --user parameter. pip install --user <package-name> Once done you can also check to see if the package is installed using pip list command. Hope it helps!

juahidpal commented 4 years ago

El piperror generado sugiere que la instalación de pip no se realizó correctamente. Puede intentar instalar usando el --userparámetro pip install --user <package-name> Una vez hecho esto, también puede verificar si el paquete está instalado usando el pip listcomando. ¡Espero eso ayude!

Muchas gracias, pero sigue sin instalarse el paquete mlagents.

Se instala todos los demas paquetes menos ese:

PS C:\Users\Usuario> pip3 install --user D:\ML_Unity\ml-agents-release_3\ml-agents\ Processing d:\ml_unity\ml-agents-release_3\ml-agents Requirement already satisfied: grpcio>=1.11.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (1.29.0) Requirement already satisfied: h5py>=2.9.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (2.10.0) Requirement already satisfied: mlagents_envs==0.17.0 in d:\ml_unity\ml-agents-release_3\ml-agents-envs (from mlagents==0.17.0) (0.17.0) Requirement already satisfied: numpy<2.0,>=1.13.3 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (1.18.5) Requirement already satisfied: Pillow>=4.2.1 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (7.1.2) Requirement already satisfied: protobuf>=3.6 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (3.12.2) Requirement already satisfied: pyyaml>=3.1.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (5.3.1) Collecting tensorflow<3.0,>=1.7 Using cached tensorflow-2.2.0-cp37-cp37m-win_amd64.whl (459.2 MB) Collecting cattrs>=1.0.0 Using cached cattrs-1.0.0-py2.py3-none-any.whl (14 kB) Collecting attrs>=19.3.0 Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB) Requirement already satisfied: six>=1.12.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (1.15.0) Requirement already satisfied: pypiwin32==223 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (223) Requirement already satisfied: cloudpickle in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents_envs==0.17.0->mlagents==0.17.0) (1.4.1) Requirement already satisfied: setuptools in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\site-packages (from protobuf>=3.6->mlagents==0.17.0) (41.2.0) Processing c:\users\usuario\appdata\local\pip\cache\wheels\3f\e3\ec\8a8336ff196023622fbcb36de0c5a5c218cbb24111d1d4c7f2\termcolor-1.1.0-py3-none-any.whl Requirement already satisfied: wrapt>=1.11.1 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.12.1) Collecting opt-einsum>=2.3.2 Using cached opt_einsum-3.2.1-py3-none-any.whl (63 kB) Requirement already satisfied: google-pasta>=0.1.8 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.2.0) Requirement already satisfied: gast==0.3.3 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.3.3) Collecting scipy==1.4.1; python_version >= "3" Using cached scipy-1.4.1-cp37-cp37m-win_amd64.whl (30.9 MB) Requirement already satisfied: absl-py>=0.7.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.9.0) Collecting tensorflow-estimator<2.3.0,>=2.2.0 Using cached tensorflow_estimator-2.2.0-py2.py3-none-any.whl (454 kB) Requirement already satisfied: astunparse==1.6.3 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.6.3) Requirement already satisfied: keras-preprocessing>=1.1.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.1.2) Requirement already satisfied: wheel>=0.26; python_version >= "3" in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.34.2) Collecting tensorboard<2.3.0,>=2.2.0 Using cached tensorboard-2.2.2-py3-none-any.whl (3.0 MB) Requirement already satisfied: pywin32>=223 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from pypiwin32==223->mlagents==0.17.0) (228) Requirement already satisfied: werkzeug>=0.11.15 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.0.1) Requirement already satisfied: markdown>=2.6.8 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (3.2.2) Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.4.1) Requirement already satisfied: google-auth<2,>=1.6.3 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.16.1) Requirement already satisfied: requests<3,>=2.21.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (2.23.0) Collecting tensorboard-plugin-wit>=1.6.0 Using cached tensorboard_plugin_wit-1.6.0.post3-py3-none-any.whl (777 kB) Requirement already satisfied: importlib-metadata; python_version < "3.8" in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from markdown>=2.6.8->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.6.1) Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.3.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.2.8) Requirement already satisfied: rsa<4.1,>=3.1.4 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (4.0) Requirement already satisfied: cachetools<5.0,>=2.0.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (4.1.0) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.25.9) Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (2020.4.5.2) Requirement already satisfied: idna<3,>=2.5 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (2.9) Requirement already satisfied: zipp>=0.5 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from importlib-metadata; python_version < "3.8"->markdown>=2.6.8->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (3.1.0) Requirement already satisfied: oauthlib>=3.0.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (3.1.0) Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.4.8) Building wheels for collected packages: mlagents Building wheel for mlagents (setup.py) ... done Created wheel for mlagents: filename=mlagents-0.17.0-py3-none-any.whl size=142504 sha256=da182557c03775b349d8085b1258be16ba2903e50a6ed2d27b29bc3151cc7bec Stored in directory: c:\users\usuario\appdata\local\pip\cache\wheels\2a\1d\59\dbb9b65104c8cec980a2dc73367c0421100df12733d8cd4455 Successfully built mlagents Installing collected packages: termcolor, opt-einsum, scipy, tensorflow-estimator, tensorboard-plugin-wit, tensorboard, tensorflow, attrs, cattrs, mlagents ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_estimator\python\estimator\canned\linear_optimizer\python\utils\pycache\sharded_mutable_dense_hashtable.cpython-37.pyc'

PS C:\Users\Usuario> pip3 list Package Version Location


absl-py 0.9.0 astunparse 1.6.3 cachetools 4.1.0 certifi 2020.4.5.2 chardet 3.0.4 cloudpickle 1.4.1 gast 0.3.3 google-auth 1.16.1 google-auth-oauthlib 0.4.1 google-pasta 0.2.0 grpcio 1.29.0 h5py 2.10.0 idna 2.9 importlib-metadata 1.6.1 Keras-Preprocessing 1.1.2 Markdown 3.2.2 mlagents-envs 0.17.0 d:\ml_unity\ml-agents-release_3\ml-agents-envs numpy 1.18.5 oauthlib 3.1.0 opt-einsum 3.2.1 Pillow 7.1.2 pip 20.1.1 protobuf 3.12.2 pyasn1 0.4.8 pyasn1-modules 0.2.8 pypiwin32 223 pywin32 228 PyYAML 5.3.1 requests 2.23.0 requests-oauthlib 1.3.0 rsa 4.0 scipy 1.4.1 six 1.15.0 termcolor 1.1.0 urllib3 1.25.9 Werkzeug 1.0.1 wheel 0.34.2 wrapt 1.12.1 zipp 3.1.0 PS C:\Users\Usuario>

chriselion commented 4 years ago

It sounds like your path name is too long: https://stackoverflow.com/a/55189256/224264

juahidpal commented 4 years ago

It sounds like your path name is too long: https://stackoverflow.com/a/55189256/224264

Finalmente creo que pude instalar el paquete mlagents cambiando la variable LongPathsEnabled a 1, pero al usar el comando mlagents-learn no me lo reconoce:

PS C:\Users\Usuario> pip3 install --user D:\ML_Unity\ml-agents-release_3\ml-agents\ Processing d:\ml_unity\ml-agents-release_3\ml-agents Requirement already satisfied: grpcio>=1.11.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (1.29.0) Requirement already satisfied: h5py>=2.9.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (2.10.0) Requirement already satisfied: mlagents_envs==0.17.0 in d:\ml_unity\ml-agents-release_3\ml-agents-envs (from mlagents==0.17.0) (0.17.0) Requirement already satisfied: numpy<2.0,>=1.13.3 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (1.18.5) Requirement already satisfied: Pillow>=4.2.1 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (7.1.2) Requirement already satisfied: protobuf>=3.6 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (3.12.2) Requirement already satisfied: pyyaml>=3.1.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (5.3.1) Collecting tensorflow<3.0,>=1.7 Using cached tensorflow-2.2.0-cp37-cp37m-win_amd64.whl (459.2 MB) Collecting cattrs>=1.0.0 Using cached cattrs-1.0.0-py2.py3-none-any.whl (14 kB) Collecting attrs>=19.3.0 Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB) Requirement already satisfied: six>=1.12.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (1.15.0) Requirement already satisfied: pypiwin32==223 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents==0.17.0) (223) Requirement already satisfied: cloudpickle in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from mlagents_envs==0.17.0->mlagents==0.17.0) (1.4.1) Requirement already satisfied: setuptools in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\site-packages (from protobuf>=3.6->mlagents==0.17.0) (41.2.0) Requirement already satisfied: wheel>=0.26; python_version >= "3" in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.34.2) Collecting tensorflow-estimator<2.3.0,>=2.2.0 Using cached tensorflow_estimator-2.2.0-py2.py3-none-any.whl (454 kB) Requirement already satisfied: keras-preprocessing>=1.1.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.1.2) Requirement already satisfied: opt-einsum>=2.3.2 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (3.2.1) Requirement already satisfied: termcolor>=1.1.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.1.0) Requirement already satisfied: wrapt>=1.11.1 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.12.1) Collecting tensorboard<2.3.0,>=2.2.0 Using cached tensorboard-2.2.2-py3-none-any.whl (3.0 MB) Requirement already satisfied: google-pasta>=0.1.8 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.2.0) Requirement already satisfied: astunparse==1.6.3 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.6.3) Requirement already satisfied: scipy==1.4.1; python_version >= "3" in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.4.1) Requirement already satisfied: gast==0.3.3 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.3.3) Requirement already satisfied: absl-py>=0.7.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.9.0) Requirement already satisfied: pywin32>=223 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from pypiwin32==223->mlagents==0.17.0) (228) Requirement already satisfied: requests<3,>=2.21.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (2.23.0) Requirement already satisfied: werkzeug>=0.11.15 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.0.1) Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.4.1) Collecting tensorboard-plugin-wit>=1.6.0 Using cached tensorboard_plugin_wit-1.6.0.post3-py3-none-any.whl (777 kB) Requirement already satisfied: markdown>=2.6.8 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (3.2.2) Requirement already satisfied: google-auth<2,>=1.6.3 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.16.1) Requirement already satisfied: certifi>=2017.4.17 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (2020.4.5.2) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.25.9) Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (3.0.4) Requirement already satisfied: idna<3,>=2.5 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (2.9) Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.3.0) Requirement already satisfied: importlib-metadata; python_version < "3.8" in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from markdown>=2.6.8->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (1.6.1) Requirement already satisfied: cachetools<5.0,>=2.0.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (4.1.0) Requirement already satisfied: rsa<4.1,>=3.1.4 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (4.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.2.8) Requirement already satisfied: oauthlib>=3.0.0 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (3.1.0) Requirement already satisfied: zipp>=0.5 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from importlib-metadata; python_version < "3.8"->markdown>=2.6.8->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (3.1.0) Requirement already satisfied: pyasn1>=0.1.3 in c:\users\usuario\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from rsa<4.1,>=3.1.4->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow<3.0,>=1.7->mlagents==0.17.0) (0.4.8) Building wheels for collected packages: mlagents Building wheel for mlagents (setup.py) ... done Created wheel for mlagents: filename=mlagents-0.17.0-py3-none-any.whl size=142504 sha256=e4099d3ad8c16d34f714ff9ec98bd27c740d97b5923d53c4e79946777853865d Stored in directory: c:\users\usuario\appdata\local\pip\cache\wheels\2a\1d\59\dbb9b65104c8cec980a2dc73367c0421100df12733d8cd4455 Successfully built mlagents Installing collected packages: tensorflow-estimator, tensorboard-plugin-wit, tensorboard, tensorflow, attrs, cattrs, mlagents WARNING: The script tensorboard.exe is installed in 'C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts estimator_ckpt_converter.exe, saved_model_cli.exe, tensorboard.exe, tf_upgrade_v2.exe, tflite_convert.exe, toco.exe and toco_from_protos.exe are installed in 'C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts mlagents-learn.exe and mlagents-run-experiment.exe are installed in 'C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed attrs-19.3.0 cattrs-1.0.0 mlagents-0.17.0 tensorboard-2.2.2 tensorboard-plugin-wit-1.6.0.post3 tensorflow-2.2.0 tensorflow-estimator-2.2.0 PS C:\Users\Usuario> pip3 list Package Version Location


absl-py 0.9.0 astunparse 1.6.3 attrs 19.3.0 cachetools 4.1.0 cattrs 1.0.0 certifi 2020.4.5.2 chardet 3.0.4 cloudpickle 1.4.1 gast 0.3.3 google-auth 1.16.1 google-auth-oauthlib 0.4.1 google-pasta 0.2.0 grpcio 1.29.0 h5py 2.10.0 idna 2.9 importlib-metadata 1.6.1 Keras-Preprocessing 1.1.2 Markdown 3.2.2 mlagents 0.17.0 mlagents-envs 0.17.0 d:\ml_unity\ml-agents-release_3\ml-agents-envs numpy 1.18.5 oauthlib 3.1.0 opt-einsum 3.2.1 Pillow 7.1.2 pip 20.1.1 protobuf 3.12.2 pyasn1 0.4.8 pyasn1-modules 0.2.8 pypiwin32 223 pywin32 228 PyYAML 5.3.1 requests 2.23.0 requests-oauthlib 1.3.0 rsa 4.0 scipy 1.4.1 six 1.15.0 tensorboard 2.2.2 tensorboard-plugin-wit 1.6.0.post3 tensorflow 2.2.0 tensorflow-estimator 2.2.0 termcolor 1.1.0 urllib3 1.25.9 Werkzeug 1.0.1 wheel 0.34.2 wrapt 1.12.1 zipp 3.1.0 PS C:\Users\Usuario> mlagents-learn mlagents-learn : El término 'mlagents-learn' no se reconoce como nombre de un cmdlet, función, archivo de script o programa ejecutable. Compruebe si escribió correctamente el nombre o, si incluyó una ruta de acceso, compruebe que dicha ruta es correcta e inténtelo de nuevo. En línea: 1 Carácter: 1

chriselion commented 4 years ago

(Sorry, my Spanish is not very good)

I think this is the important warning message:

WARNING: The scripts mlagents-learn.exe and mlagents-run-experiment.exe are installed in 'C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

The scripts is not in your PATH, so it doesn't know where to look for mlagents-learn. I don't user PowerShell, but I think this is how you can add it to your path: https://stackoverflow.com/a/37663645/224264

juahidpal commented 4 years ago

WARNING: The scripts mlagents-learn.exe and mlagents-run-experiment.exe are installed in 'C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

He movido todos los scipts que indican los warning (mlagents-learn.exe, mlagents-run-experiment.exe, estimator_ckpt_converter.exe, saved_model_cli.exe, tensorboard.exe, tf_upgrade_v2.exe, tflite_convert.exe, toco.exe and toco_from_protos.exe) a mi directorio raíz (C:\Users\Usuario). Posteriormente con el comando .\mlagents-learn --help me indica esto: PS C:\Users\Usuario> .\mlagents-learn --help Traceback (most recent call last): File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64qbz5n2kfra8p0\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64qbz5n2kfra8p0\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: No se puede encontrar el módulo especificado.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\Usuario\mlagents-learn.exe__main.py", line 4, in File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\mlagents\trainers\learn.py", line 12, in from mlagents import tf_utils File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\mlagents\tf_utils\init.py", line 1, in from mlagents.tf_utils.tf import tf as tf # noqa File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\mlagents\tf_utils\tf.py", line 3, in import tensorflow as tf # noqa I201 File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\init.py", line 41, in from tensorflow.python.tools import module_util as _module_util File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\python\init__.py", line 50, in from tensorflow.python import pywrap_tensorflow File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\python\pywrap_tensorflow.py", line 69, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64qbz5n2kfra8p0\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: No se puede encontrar el módulo especificado.

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.

Visite la web pero no logré solucionar el problema.

Muchas gracias por la ayuda.

chriselion commented 4 years ago

This issue is explained here: https://github.com/Unity-Technologies/ml-agents/blob/master/docs/FAQ.md#visual-c-dependency-windows-users

You need to install the [Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.(https://support.microsoft.com/en-my/help/2977003/the-latest-supported-visual-c-downloads).

juahidpal commented 4 years ago

¿Alguien sabe como puedo solucionar este oos errores en unity que no me permiten correr la aplicación?

Errores: Library\PackageCache\com.unity.package-validation-suite@0.7.15-preview\Editor\Extension\Packages\ValidationSuiteExtension.cs(3,34): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEditor.PackageManager' (are you missing an assembly reference?)

Library\PackageCache\com.unity.package-validation-suite@0.7.15-preview\Editor\Extension\Packages\ValidationSuiteExtension.cs(13,47): error CS0246: The type or namespace name 'IPackageManagerExtension' could not be found (are you missing a using directive or an assembly reference?)

Gracias.

chriselion commented 4 years ago

I'm not sure what's causing that, but you don't need that package in your project.

I'm removing it from the ML-Agents project here: https://github.com/Unity-Technologies/ml-agents/pull/4146

juahidpal commented 4 years ago

Hola de nuevo,

¿Es correcto esto?:

PS C:\Users\Usuario> .\mlagents-learn D:\ML_Unity\ml-agents-release_3\config\ppo\3DBall.yaml --run-id=first3DBallRun --resume WARNING:tensorflow:From C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\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

                    ▄▄▄▓▓▓▓
               ╓▓▓▓▓▓▓█▓▓▓▓▓
          ,▄▄▄m▀▀▀'  ,▓▓▓▀▓▓▄                           ▓▓▓  ▓▓▌
        ▄▓▓▓▀'      ▄▓▓▀  ▓▓▓      ▄▄     ▄▄ ,▄▄ ▄▄▄▄   ,▄▄ ▄▓▓▌▄ ▄▄▄    ,▄▄
      ▄▓▓▓▀        ▄▓▓▀   ▐▓▓▌     ▓▓▌   ▐▓▓ ▐▓▓▓▀▀▀▓▓▌ ▓▓▓ ▀▓▓▌▀ ^▓▓▌  ╒▓▓▌
    ▄▓▓▓▓▓▄▄▄▄▄▄▄▄▓▓▓      ▓▀      ▓▓▌   ▐▓▓ ▐▓▓    ▓▓▓ ▓▓▓  ▓▓▌   ▐▓▓▄ ▓▓▌
    ▀▓▓▓▓▀▀▀▀▀▀▀▀▀▀▓▓▄     ▓▓      ▓▓▌   ▐▓▓ ▐▓▓    ▓▓▓ ▓▓▓  ▓▓▌    ▐▓▓▐▓▓
      ^█▓▓▓        ▀▓▓▄   ▐▓▓▌     ▓▓▓▓▄▓▓▓▓ ▐▓▓    ▓▓▓ ▓▓▓  ▓▓▓▄    ▓▓▓▓`
        '▀▓▓▓▄      ^▓▓▓  ▓▓▓       └▀▀▀▀ ▀▀ ^▀▀    `▀▀ `▀▀   '▀▀    ▐▓▓▌
           ▀▀▀▀▓▄▄▄   ▓▓▓▓▓▓,                                      ▓▓▓▓▀
               `▀█▓▓▓▓▓▓▓▓▓▌
                    ¬`▀▀▀█▓

Version information: ml-agents: 0.17.0, ml-agents-envs: 0.17.0, Communicator API: 1.0.0, TensorFlow: 2.0.0 WARNING:tensorflow:From C:\Users\Usuario\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\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 2020-07-01 11:25:36 INFO [environment.py:199] Listening on port 5004. Start training by pressing the Play button in the Unity Editor. 2020-07-01 11:25:50 INFO [environment.py:108] Connected to Unity environment with package version 1.1.0-preview and communication version 1.0.0 2020-07-01 11:25:50 INFO [environment.py:265] Connected new brain: 3DBall?team=0 2020-07-01 11:25:50.511592: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 2020-07-01 11:25:50 INFO [stats.py:130] Hyperparameters for behavior name 3DBall: trainer_type: ppo hyperparameters: batch_size: 64 buffer_size: 12000 learning_rate: 0.0003 beta: 0.001 epsilon: 0.2 lambd: 0.99 num_epoch: 3 learning_rate_schedule: linear network_settings: normalize: True hidden_units: 128 num_layers: 2 vis_encode_type: simple memory: None reward_signals: extrinsic: gamma: 0.99 strength: 1.0 init_path: None keep_checkpoints: 5 checkpoint_interval: 500000 max_steps: 500000 time_horizon: 1000 summary_freq: 12000 threaded: True self_play: None behavioral_cloning: None 2020-07-01 11:25:53 INFO [tf_policy.py:165] Loading model for brain 3DBall?team=0 from results\first3DBallRun\3DBall. 2020-07-01 11:25:53 INFO [tf_policy.py:196] Resuming training from step 233836. 2020-07-01 11:26:13 INFO [stats.py:111] 3DBall: Step: 240000. Time Elapsed: 42.431 s Mean Reward: 99.500. Std of Reward: 1.118. Training. 2020-07-01 11:26:40 INFO [stats.py:111] 3DBall: Step: 252000. Time Elapsed: 69.137 s Mean Reward: 100.000. Std of Reward: 0.000. Training. 2020-07-01 11:26:56 INFO [stats.py:111] 3DBall: Step: 264000. Time Elapsed: 85.440 s Mean Reward: 100.000. Std of Reward: 0.000. Training. 2020-07-01 11:27:21 INFO [stats.py:111] 3DBall: Step: 276000. Time Elapsed: 109.471 s Mean Reward: 100.000. Std of Reward: 0.000. Training. 2020-07-01 11:27:41 INFO [stats.py:111] 3DBall: Step: 288000. Time Elapsed: 130.070 s Mean Reward: 92.462. Std of Reward: 26.114. Training.

juahidpal commented 4 years ago

Tengo la duda porque tras parar el ejecución no puede ver los resultados en localhost:6006.

2020-07-01 11:31:54 INFO [subprocess_env_manager.py:191] UnityEnvironment worker 0: environment stopping. 2020-07-01 11:31:55 INFO [trainer_controller.py:234] Learning was interrupted. Please wait while the graph is generated. 2020-07-01 11:31:55 INFO [trainer_controller.py:108] Saved Model 2020-07-01 11:31:55 INFO [model_serialization.py:203] List of nodes to export for brain :3DBall?team=0 2020-07-01 11:31:55 INFO [model_serialization.py:205] is_continuous_control 2020-07-01 11:31:55 INFO [model_serialization.py:205] trainer_major_version 2020-07-01 11:31:55 INFO [model_serialization.py:205] trainer_minor_version 2020-07-01 11:31:55 INFO [model_serialization.py:205] trainer_patch_version 2020-07-01 11:31:55 INFO [model_serialization.py:205] version_number 2020-07-01 11:31:55 INFO [model_serialization.py:205] memory_size 2020-07-01 11:31:55 INFO [model_serialization.py:205] action_output_shape 2020-07-01 11:31:55 INFO [model_serialization.py:205] action 2020-07-01 11:31:55 INFO [model_serialization.py:205] action_probs Converting results\first3DBallRun\3DBall/frozen_graph_def.pb to results\first3DBallRun\3DBall.nn IGNORED: Cast unknown layer IGNORED: Shape unknown layer IGNORED: StopGradient unknown layer GLOBALS: 'is_continuous_control', 'trainer_major_version', 'trainer_minor_version', 'trainer_patch_version', 'version_number', 'memory_size', 'action_output_shape' IN: 'vector_observation': [-1, 1, 1, 8] => 'sub_2' OUT: 'action', 'action_probs' DONE: wrote results\first3DBallRun\3DBall.nn file. 2020-07-01 11:31:56 INFO [model_serialization.py:83] Exported results\first3DBallRun\3DBall.nn file PS C:\Users\Usuario> .\tensorboard --logdir = results usage: tensorboard [-h] [--helpfull] [--logdir PATH] [--logdir_spec PATH_SPEC] [--host ADDR] [--bind_all] [--port PORT] [--purge_orphaned_data BOOL] [--db URI] [--db_import] [--inspect] [--version_tb] [--tag TAG] [--event_file PATH] [--path_prefix PATH] [--window_title TEXT] [--max_reload_threads COUNT] [--reload_interval SECONDS] [--reload_task TYPE] [--reload_multifile BOOL] [--reload_multifile_inactive_secs SECONDS] [--generic_data TYPE] [--samples_per_plugin SAMPLES_PER_PLUGIN] [--debugger_data_server_grpc_port PORT] [--debugger_port PORT] [--master_tpu_unsecure_channel ADDR] {serve,dev} ... tensorboard: error: invalid choice: 'results' (choose from 'serve', 'dev') PS C:\Users\Usuario>

chriselion commented 4 years ago

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.

These messages are safe to ignore.

Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

This is safe to ignore. There is more information here: https://stackoverflow.com/a/47227886

The rest of the training looks good.

PS C:\Users\Usuario> .\tensorboard --logdir = results

This is wrong. It should be .\tensorboard --logdir=results.

juahidpal commented 4 years ago

Gracias, poco a poco voy aprendiendo.

Al escribir: PS C:\Users\Usuario> .\tensorboard --logdir=result Serving TensorBoard on localhost; to expose to the network, use a proxy or pass --bind_all TensorBoard 2.0.2 at http://localhost:6006/ (Press CTRL+C to quit)

Posteriormente abro http://localhost:6006/ en mi navegador y me aparece esto de TensorBoard:

No dashboards are active for the current data set. Probable causes:

You haven’t written any data to your event files. TensorBoard can’t find your event files. If you’re new to using TensorBoard, and want to find out how to add data and set up your event files, check out the README and perhaps the TensorBoard tutorial. If you think TensorBoard is configured properly, please see the section of the README devoted to missing data problems and consider filing an issue on GitHub.

Last reload: Mon Jul 06 2020 12:37:18 GMT+0200 (hora de verano de Europa central) Data location: result

¿Que puede hacer para ver los datos?

Muchas gracias.

chriselion commented 4 years ago

Al escribir: PS C:\Users\Usuario> .\tensorboard --logdir=result

We write the data to the "results" directory, but you are using "result", which does not exist.

Please use .\tensorboard --logdir=results

chriselion commented 4 years ago

As @niskander noticed in https://github.com/Unity-Technologies/ml-agents/pull/4262, you might need to do .\tensorboard --logdir results (without the =) instead.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had activity in the last 14 days. It will be closed in the next 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically closed because it has not had activity in the last 28 days. If this issue is still valid, please ping a maintainer. Thank you for your contributions.

github-actions[bot] commented 3 years ago

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.