-
Notifications
You must be signed in to change notification settings - Fork 13
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
Render in Windows and train in Ubuntu #4
Comments
Hi, Thanks for your interest. For starters, I would change the IP address in the settings.py. This IP address should correspond to the IP address of your windows machine where you are trying to render the UE4 environment. Also based on our experience, the RL training is really not that GPU intensive for the kind of architecture we explored. It is possible that you might actually be able to train faster if you run UE4 and RL training on the same machine. The UE4 has about 30-40% GPU utilization (RTX 2080 TI) which means there is still room to squeeze more performance from a single machine/GPU. If you are having trouble setting up the RL training on windows (i.e. installing TensorFlow and CUDA drivers etc on windows), I can quickly write up a document or have a wiki page. |
Hi Srivatsan,
Thank you for your prompt reply. Unfortunately, my only windows machine doesn’t even have an independent GPU card, I don’t think it’s going to be able to do the training.
On the other hand, my Ubuntu machine is quite powerful, I really wish I could do all the thing there. Anyway, I’ll give the settings.py a try and let you know. Thanks.
Ye
… On Oct 26, 2019, at 10:35 AM, Srivatsan Krishnan ***@***.***> wrote:
Hi, Thanks for your interest. For starters, I would change the IP address in the settings.py. This IP address should correspond to the IP address of your windows machine where you are trying to render the UE4 environment.
Also based on our experience, the RL training is really not that GPU intensive for the kind of architecture we explored. It is possible that you might actually be able to train faster if you run UE4 and RL training on the same machine. The UE4 has about 30-40% GPU utilization (RTX 2080 TI) which means there is still room to squeeze more performance from a single machine/GPU.
If you are having trouble setting up the RL training on windows (i.e. installing TensorFlow and CUDA drivers etc on windows), I can quickly write up a document or have a wiki page.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#4?email_source=notifications&email_token=AL63X3Z57CSZKLBVHWRSEE3QQR5WRA5CNFSM4JFHAN7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECKNC7Y#issuecomment-546623871>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AL63X33Y7LK6GNVECLFVVQTQQR5WRANCNFSM4JFHAN7A>.
|
Hi Srivatsan, when I ran the cmd "python3 collect_data.py", I got an error "ImportError: cannot import name 'initializers' from 'keras.layers' (/home/labuser/documents/anaconda3/lib/python3.7/site-packages/keras/layers/init.py)" But I checked the init.py file, there is no "initializers" module or method in this file, am I missing something? Ye |
Hi, |
Hi Sri, I figured out the issue, for the latest keras, it seems I need to use "tensorflow.keras" instead of "keras.layers" to import the fertilizers. The issue is gone now. I took your advice, and changed the ip address in the settings.py file, that's pretty much the only place I can think of to change the ip address. I also modified the path of the "game" part, details as below: used for game configuration handlingjson_file_addr = "Users\yelu\Documents\airlearning-ue4\Content\JsonFiles\EnvGenConfig" used for start, restart and killing the gamegame_file = "airlearning\airlearning-ue4\AirLearning.uproject" -------------------------------------------------------------Drone related-------------------------------------------------------------#ip = '10.243.49.243' The result is "can not start the game in a remote machine" , when I ran the collect_data.py file. Any suggestions? |
Hi, We have tried this and it is known to work. Give this a try and let me know how this goes. |
Hi Sri, |
Hi Ye, When you say mapped UE4 to ubuntu what do you mean? Ideally, you should do something like this: The windows shared drive will have the UE4 repository. The Ubuntu machine will run the RL training. In the setting file, you will give the Windows shared folder path as viewed from Ubuntu along with proper credentials. Let me know how this goes. |
Hi Sri,
I went through the guide you provided (thank you btw), and that is exactly what I did. And that’s also what I meant by “mapped the UE4 folder to the Ubuntu” , i.e. I shared the UE4 folder (on Windows) to the Ubuntu, changed the path in the Python file, ran the simulator on Windows, and ran RL training on Ubuntu. But the RL training still failed start, with the error message on my previous post.
I’m guessing I didn’t setup the path( in the Python file) correctly. I’m hoping you could give me some more information on how I should change the path. I also included my current settings in my previous post for your reference.
Thank you!
Ye
Ye Lu
… On Dec 6, 2019, at 20:07, Srivatsan Krishnan ***@***.***> wrote:
Hi Ye,
Sorry, I missed your previous comment.
When you say mapped UE4 to ubuntu what do you mean?
Ideally, you should do something like this:
https://www.howtogeek.com/176471/how-to-share-files-between-windows-and-linux/
The windows shared drive will have the UE4 repository. The Ubuntu machine will run the RL training. In the setting file, you will give the Windows shared folder path as viewed from Ubuntu along with proper credentials.
Let me know how this goes.
-Sri
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi Sri, Sorry that I keep bothering you, I'd appreciate it if you can provide some comment on my post above. Thank you. Ye |
Hi Ye, Can you confirm if this works? |
Hi Sri, Thanks for the reply. Yes, I confirm that I can see a file shared from ubuntu is seen in the shared folder in Windows 10, i.e. the sharing is 2-way. I look forward to your further advise. |
Hi Ye, Now in your machine dependent settings file (machine_dependent_settins.py), enter the shared d in the shared path variable ( Let me know how this goes. |
Hi guys, |
Can it run on Ubuntu now? @srivatsankrishnan @raphajaner @monoluk @plancherb1 @RadhikaG |
Hi, I'm very interested in your project and want to try it out. The problem is my GPUs are on an Ubuntu machine, which cannot install Windows. So I have to run the Unreal AirSim on a separated machine (Windows). Could you provide a quick guide on how to setup the path between the two machines? Or any necessary steps.
I'm guessing unreal_host_shared_dir = "" is the key?
Thanks
Ye
The text was updated successfully, but these errors were encountered: