harvard-edge / airlearning-rl

Reinforcement learning algorithms for Algorithm, policy exploration in Air Learning
38 stars 13 forks source link

Training issue #3

Open kirk0306 opened 5 years ago

kirk0306 commented 5 years ago

Hi! Srivatsankrishnan

I am a very beginner and I received this message when I tried to run the training.

ValueError: Error: the file C:/Users/bpdui/Documents/airlearning_public/airlearning/airlearning-rl/data/DQN-B/zone0/0.pkl could not be found

Here is the machine_dependent_settings.py

json_file_addr = "E:\airlearning\airlearning-ue4\Content\JsonFiles\EnvGenConfig.json" game_file = "E:\airlearning\airlearning-ue4\AirLearning.uproject" unreal_host_shared_dir = "" unreal_exe_path = "E:\Program Files\Epic Games\UE_4.18\Engine\Binaries\Win64\UE4Editor.exe"

20191025044437

So maybe you can give me some advices to solve this?

srivatsankrishnan commented 5 years ago

It seems like you downloaded the pre-existing weights but have not changed the path to the weights. It seems like this path doesn't exist on your computer. You need to make sure you change this path to the directory where you have downloaded the model. "ValueError: Error: the file C:/Users/bpdui/Documents/airlearning_public/airlearning/airlearning-rl/data/DQN-B/zone0/0.pkl could not be found"

kirk0306 commented 5 years ago

You are right, when I cloned the Air Learning Project $ git clone --recursive https://github.com/harvard-edge/airlearning.git I found that this git already contains the airlearning-ue4 file, replacing it with the UE4 project that we compiled before was the way to solve my problem. (Not Sovled) It still has the problem in the branch : source-seeking

In addition: 1.airlearning.uproject in master branch already had the AirSim plugin entry, I had deleted the"Plugins": to make the project build successfully without AirSim plugin. (Sovled) 2.It seems that no more error message after replacing \ with \\ in machine_dependent_settings.py: (Sovled)

json_file_addr = "E:\\AL\\airlearning\\airlearning-ue4\\Content\\JsonFiles\\EnvGenConfig.json"
game_file = "E:\\AL\\airlearning\\airlearning-ue4\AirLearning.uproject"
unreal_host_shared_dir = ""
unreal_exe_path = "E:\\Program Files\\Epic Games\\UE_4.18\\Engine\\Binaries\\Win64\\UE4Editor.exe"

3.The simulation awalys asking me to choose vehicle, could you please tell me how to choose quadrotor as default vehicle? (Sovled) win10: Documents\AirSim\settings.json "SimMode": "Multirotor"

4.New problem: The training process was interrupted and I got the same error in two different PC 2019-10-30 16:59:28.705325: E C:\users\nwani_bazel_nwani\mmtm6wb6\execroot\org_tensorflow\tensorflow\stream_executor\cuda\cuda_event.cc:49] Error polling for event status: failed to query event: CUDA_ERROR_LAUNCH_FAILED 2019-10-30 16:59:28.711561: F C:\users\nwani_bazel_nwani\mmtm6wb6\execroot\org_tensorflow\tensorflow\core\common_runtime\gpu\gpu_event_mgr.cc:208] Unexpected Event status: 1

Thank you for this! Kirk

kirk0306 commented 5 years ago

Hi again! I had read the paper Air Learning: An AI Research Platform for Algorithm-Hardware Benchmarking of Autonomous Aerial Robots, and I am very interested in applying reinforcement learning for multi-agent UAV control. Do you think you could give me something to start on? Is that possible that using TF2.0 replace TF1.8 in airlearning? Because I am suffering from CUDA_ERROR_LAUNCH_FAILED. It would be greatly appreciated. To clarify I want adding swarm UAVs in airlearning-ue4. Thanks!

Kirk

qinglong0276 commented 11 months ago

hi!@kirk0306 Hello, how did you get to this point? I encountered an error when trying to install the AirSim plugin as the first step to generate the Air Learning environment: "AirLearning may not compile. Please try to manually rebuild from source code." Now, I don't know what to do next. Can you help me? It's great that you've made it this far, but I'm having trouble configuring the airlearning-ue4 environment and would appreciate any advice you can give me.

qinglong0276 commented 10 months ago

@kirk0306