ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

SaveJsonTimers shouldn't save to dataPath

Open TV4Fun opened this issue 2 years ago • 1 comments

Whether performing training or inference, in the editor or standalone, ml-agents saves JSON timer logs into Application.dataPath, which is the Assets folder in the editor, or something internal to the executable in standalone. This is a very bad practice, as this folder is meant for read-only data. In development, it makes version control trickier as it adds unnecessary changes within your project files. In production, it potentially makes changes to internal datafiles in released application bundles. I would suggest possibly saving these to Application.persistentDataPath, or giving an option to specify a different directory or disable this altogether.

TV4Fun avatar Oct 22 '21 16:10 TV4Fun

Thanks for bringing this to our attention. That's a fair enhancement and I logged it in our internal tracker.

maryamhonari avatar Oct 26 '21 14:10 maryamhonari