This usually means that the trainer didn’t get created successfully because of some other error. Look through the log and see if there is another error prior to this one.
Hi! This is a Great Job! But i have a few question. I followed your step about Tensorboard, but i can’t found the folder “TensorBoard\runs” in the path "Intermediate\LearningAgents". I wander why? I made sure I installed the tensorboard as the tutorial and set Use Tensorboard to true in the mananger.
@Deathcalibur Any goodies you can tell us about for 5.5?
- Check the log to make sure there are no warnings or errors related to tensorboard. You should see “tensorboard: true” in the config print out
- Make sure you are checking under your project directory’s intermediate path and not somewhere in the engine.
@tomhalpin8
Here’s what is coming in 5.5:
- Re-architected training code
- Split choice of training algorithm from networking protocol and training environment
- Additional networking protocols
- TCP sockets in addition to shared memory
- Bring your own algorithm
- Implement your own class and Python code to replace PPO trainer
- Mac and Linux training
- Train your agents on non-Windows machines
Currently working on a solution for RL scale out (meaning multi-process data collection) for 5.6
Let me know if you have questions!
Great! Is this already in 5.5.0-Preview?
Is ActActor
in PerformAgentAction
supposed to be a variable or local variable? It’s not mentioned in the tutorial text, but it’s referenced by the PerformAgentAction script.
Was the LearningAgentsTrainer
class replaced by LearningAgentsPPOTrainer
in the last version? Though it does not contain the function GatherAgentReward
.
Great! Is this already in 5.5.0-Preview?
Yes
Is
ActActor
inPerformAgentAction
supposed to be a variable or local variable? It’s not mentioned in the tutorial text, but it’s referenced by the PerformAgentAction script.
When in doubt, you can usually make it a local variable and it will be fine.
Was the
LearningAgentsTrainer
class replaced byLearningAgentsPPOTrainer
in the last version? Though it does not contain the functionGatherAgentReward
.
The trainer was split in “TrainingEnvironment” and “PPOTrainer”. This was done so that you could introduce your own training algorithm (or we could introduce others eventually) and you would not need to rewrite your reward function since that now exists in the “TrainingEnvironment” class.
The Learning Agents plugin is in beta, am I correct?
Still experimental. Hoping to get it into beta when the foundation feels solid. Still a couple lingering issues that need to be worked out.
(post deleted by author)
**Unreal engine c++ Can’t Open include file :‘LearningTrainer.h’: No such file or directory **
-Unreal engine Version 5.5.4
-Visual Studion 2022
I have learn LearningAgent 5.5 on unreal engine Web : Learning Agents (5.5) | Course it worked and my train is good so i try to write it in c++ instead but i get struck on one path :
so in c++ in need to use :
1.include "include “LearningAgentsPPOTrainer.h”
2. Module LearningAgentsTraining
and this is the problem when i compile my code output:
1>E:\00_Program\00_UnrealEngine\UE_5.5\Engine\Plugins\Experimental\LearningAgents\Source\LearningAgentsTraining\Public\LearningAgentsTrainer.h(5): fatal error C1083: Cannot open include file: ‘LearningTrainer.h’: No such file or directory
and that i click on that compile error and show the file:
i try to delete some file like :
-.Vs
-Binaries
-Intermediate
-Save
and regenerate from vs it sill error last choise i comment on include “LearningAgentsPPOTrainer.h” compile sucess
Test: so i try to create new project (2 new project) and use include “LearningAgentsPPOTrainer.h” it have same error. any solution?
i just fine the solution this problem happen bc it doesn’t have Module “LearningTraining”. and i had found it by guess the code (Why)bc i can’t fine class call “LearningTrainer.h” in unreal engine web doc it mean there no module information. (*“LearningTrainer” which cause error : *
1>E:\00_Program\00_UnrealEngine\UE_5.5\Engine\Plugins\Experimental\LearningAgents\Source\LearningAgentsTraining\Public\LearningAgentsTrainer.h(5): fatal error C1083: Cannot open include file: ‘LearningTrainer.h’: No such file or directory)(Yes it have in unreal egnine github repo and unreal engine local install machic but who know Module by only open the file?(Example we can fine AActor class on unreal engine web, github repo, and our local install machine if unreal engine don’t tell what module it belong to how can we know?).