ITの隊長のブログ

ITの隊長のブログです。Rubyを使って仕事しています。最近も色々やっているお(^ω^ = ^ω^)

TFException: Op type not registered 'ClipByValue' in binary running on xxx.local. Make sure the Op and Kernel are registered in the binary running in this process.

スポンサードリンク

ml-agentsでチュートリアル通りに進めると、学習したモデルを使って動かそうとしたら動かなかった。

うまく学習出来ていないのかなと思いきや、よく見たらエラーが発生してた。

www.aipacommander.com

TFException: Op type not registered 'ClipByValue' in binary running on xxx.local. Make sure the Op and Kernel are registered in the binary running in this process.

根気よくググってたらissueに出会った。

github.com

@vasaka Which version of TensorFlow are you using? We currently only support 1.4 which may not include dilations.

なるほどなぁー

というわけで、tensorflowをダウングレードする.

$ pip uninstall tensorflow
$ pip install tensorflow==1.4

再学習

$ python learn.py 3DBall.app --run-id=3DBall_2 --train

学習したモデルをUnityでアタッチして実行するとできた!!

f:id:aipacommander:20180503200738g:plain

やったぜ!