Unity3D Machine Learning Setup for ML-Agents on Windows 10 with Tensorflow

preview_player
Показать описание

-------

Install tensorflow for machine learning in Unity3D today. Follow the steps here, watch out for the pitfalls I came across, and start building fun 'intelligent' agents today!

Want a text version to copy & paste from?

Рекомендации по теме
Комментарии
Автор

The world needs more people like you. Thank you

FlavienDeslandres
Автор

If you don't have GPU or any Nvidia integrated or dedicated graphics just doing the anaconda install and the agent installation will suffice.
7:25 is the starting time for peoples without GPU or with AMD GPUs

ayonchattopadhyay
Автор

Thank you so much for this. I ended up using the anaconda navigator to install and import tensorflow-gpu but without all your steps I definitely would have gotten stuck.

Leoninmiami
Автор

Hi! Thank you for the video!
Few problems I noticed starting from anaconda and python part

1) When you create virtual environment tenserflow-gpu at the 9:14, you inherited base packages which were already installed in base system, what is kind of bad, your base system should be clean, and all specific stuff should be in the virtual environment, that is the point of venv.
2) after u opened anaconda console in 2nd time (11:57), you didn't activate again tenserflow-gpu venv and start installing with force html5lib again to the base instead of tenserflow-gpu special venv
3) Finally I think I got it working with latest CUDA v9 and hope will update on installation instructions

VadimBryksin
Автор

Unity doesn't have the python sub folder anymore, so go inside ml-agents folder n ml-agents-envs folders respectively to install ml-agents and ml-agents-envs. "pip install mlagents" and "pip install mlagents_envs". Hope this helps to anyone who is following this tutorial in 2019.

RetrowaveUniverse
Автор

Hello Jason, I just wanna remind you of the update on the ML-agents setup you said you were gonna do, this is just a reminder, thanks.

CaptainJeoy
Автор

Thanks a lot!

If you ( someone ) get a black screen while installing CUDA that doesn't disappear, even after several minutes, make sure to only install CUDA in the installation settings. No card drivers etc.

benjaminw.
Автор

Very helpful tutorial! Really Appreciated!
However I noticed that you are using tensorflow's CPU version as the dependency of ML-Agent in the base environment of Anaconda (12:55), rather than tf's GPU version installed in the `tensorflow-gpu` environment(10:17).

yuyaohuang
Автор

Thankful you did these tutorials . Thanks man

yawdiegamer
Автор

New to the channel. Love the videos! Keep up with it ;)

Berryss
Автор

At 12:22 while firing "pip install ." i see an error as "Could not find Tensor Flow version 1.4.1". How can this be resolved? Plz help.

ashwiniupadhyay
Автор

at 12:00 i got an error, the video (and your prompt) don't mention you need to activate again the environment (otherwise you have errors)

Processing
Collecting tensorflow>=1.0 (from unityagents==0.2.0)
Exception:
Traceback (most recent call last):

Raducki
Автор

Guys for reference I'm using CUDA 9 with the corresponding CUDNN and it works fine. I couldn't do the v8 because there's a known issue with the GTX1080 where if you try to install that the computer screen will go completely black. I tried doing a weird mix of v8 and v9 and caused problems when trying to import tensorflow into python

hurlah
Автор

hi jason
can you upload new videos on machine learning with unity?

johnshiplet
Автор

Nice one Jason, I seem to be as far as having tensorflow not spew error messages at me and allowed to import it in python. Hurray for small successes! What a nightmare this machine learning craic is to set up..

BiggstheCat
Автор

Hi Jason,
Thanks for the very helpful video. However when I put import tensorflow as tf in Anaconda prompt, it give me this 2 errors :

OSError: [WinError 126] The specified module could not be found


Does this mean I should install CUDA 9.0 then?

xmanx
Автор

I had a problem on 12:14, after a command of "pip install .", there was a error: Could not find a version that satisfies the requirement tensorflow==1.4.1 (from unityagents==0.2.0)(...)No matching distribution found for tensorflow==1.4.1 (from unityagents==0.2.0). How can I solve this problem?

qiquanlu
Автор

Do we really need CUDA to run this project?

krishnanchandran
Автор

Very good video! I had too much trouble getting the CUDA working.

PomboKad
Автор

I had a problem with the last bit - verifying the install with import tensorflow. i solved it by installing the base tensorflow package and then installing the gpu package. I don't know why that was the case, but that's what worked for me

stropheum
join shbcf.ru