Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
17.18k stars 4.16k forks source link

Help-Wanted: Command to kill tensorflow process from C# script #2220

Closed SamHSlva closed 5 years ago

SamHSlva commented 5 years ago

I am doing a hard test on the model I have trained. So I am exploring variations on the environment to verify the efficiency of my agent in untrained situations.

The problem is that I am running thousands of simulations and with the memory leak on Linux, I have to keep restarting the program, I wanted to break my simulation in many small pieces, and as one finishes the other automatically starts. I have tried to automate the process this way, but its been failing because the tensorflow process does not end as unity game closes, neither Application.Quit() nor System.Diagnostics.Process.GetCurrentProcess().Kill(); are terminating the mlagents-learn application, only the Unity application.

I would love if someone could give me a suggestion to go around this problem.

xiaomaogy commented 5 years ago

I thought you could call certain bash script to kill the python process? Why do you have to do it from C# script? @SamHSlva

ervteng commented 5 years ago

Thanks for the comments - closing this issue due to inactivity. Feel free to open a new issue if you're still running into problems.

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.