Django Girls and Boys 備忘録

Python、Selenium、Django、java、iPhoneアプリ、Excelマクロなどで気付いたこと、覚えておきたいことなどを載せていきます。

【Unity Python】ML-Agentsで”Previous data from this run ID was found. Either specify a new run ID, use --resume to resume this run, or use the --force parameter to overwrite existing data.”のようなエラーが表示された時の解決方法


UnityでML-Agentsを習得しようとして「Unity ML-Agents実践ゲームプログラミング」に沿ってやっていく中で発生したエラーとしては他に以下のようなものもありました。

これも備忘録として残しておきます。

 

 

 

 

 

1.エラー内容

 

 

Previous data from this run ID was found. Either specify a new run ID, use --resume to resume this run, or use the --force parameter to overwrite existing data.

 

例としては、コマンドプロンプトにて学習をさせるために以下のような入力をした時に発生したものです。

 

mlagents-learn ./config/sample/RollerBall.yaml --run-id=RollerBall-1

 

 

2.解決方法

 

 

これは、上記入力内にある「--run-id=」の次の学習結果用のフォルダ名称の「RollerBall-1」が既に存在するというものなので、これを存在しないもの(たとえば、「RollerBall-2」が存在しなければ「RollerBall-2」)に変更して再実行すればエラーはなくなります。

 

以上が、”Previous data from this run ID was found. Either specify a new run ID, use --resume to resume this run, or use the --force parameter to overwrite existing data.”のようなエラーが表示された時の解決方法になります。