Using Proximal Policy Optimzation (PPO)
- Locates
learn_rl.py - Modify the parameters (more info)
- Run
learn_rl.py
- Locates
learn_ml.py - Modify the parameters (more info)
- Implement your own decision algorithm in
def decide(brain_info: BrainInfo) function - Run
learn_ml.py
- Sample Code:
learn_gym.py
from gym_unity.envs import UnityEnv
env = UnityEnv(environment_filename, worker_id=0, use_visual, multiagent, env_config,camera_res_overwrite)
- Limitation:
By default the first visual observation is provided as the observation, if present. Otherwise vector observations are provided.
All BrainInfo output from the environment can still be accessed from the info provided byenv.step(action)
- Set
load_model = TrueLoad the pre-train model - Set
train_model = FalseDon't run any learning algorithm - Set
fast_simulation = FalseEnable inference mode, allow you to use WASD-controled Observe Camera - Run
learn_rl.py