rebel编译与安装

  • git clone rebel
  • cd rebel
  • conda create -n rebel python=3.7.10
  • conda activate rebel
  • pip install -r requirements.txt
  • conda install cmake
  • git submodules update --init
  • cd thrid_party
  • git clone pypind11
  • git checkout hash
  • sudo apt install g++=8 (参考安装gcc)
  • make
  • python run.py --adhoc --cfg conf/c02_selfplay/liars_sp.yaml \ env.num_dice=1 \ env.num_faces=4 \ env.subgame_params.use_cfr=true \ selfplay.cpu_gen_threads=60
  • 如果报错未找到pytorch-lightning,使用requirements.txt里的pip install -e git+https://...安装即可
上一篇:将jar文件加到Maven的local repository中


下一篇:自动将指定目录下面的文件转换为UTF-8