SSSxCCC / AlphaZero-In-Unity

Several board game AI, which are trained based on AlphaZero, used in a Unity game.
MIT License
39 stars 14 forks source link

How to run this project on Unity #5

Open ttienqb opened 3 months ago

ttienqb commented 3 months ago

Hi, I've import this plugin (https://github.com/miyamotok0105/unity-ml-agents/blob/master/docs/Using-TensorFlow-Sharp-in-Unity.md#using-your-own-trained-graphs) Then run the Unity project. image

But I get below issue DllNotFoundException: libtensorflow assembly: type: member:(null) TensorFlow.TFGraph..ctor () (at <6ed6db22f8874deba74ffe3e566039be>:0) Connect4PolicyValueNet..ctor (System.Int32 width, System.Int32 height) (at Assets/Scripts/Connect4/Connect4Model.cs:17) Connect4Game.Start () (at Assets/Scripts/Connect4/Connect4Game.cs:38)

Can you help me fix it?

SSSxCCC commented 3 months ago

Sorry, I don't have an environment that can run this project. I see that the TensorFlowSharp in your link seems to be version 0.3. I used version 0.5 before. You can try to see if changing to version 0.5 of TensorFlowSharp can fix this problem: https://s3.amazonaws.com/unity-ml-agents/0.5/TFSharpPlugin.unitypackage