latorc / MahjongCopilot

雀魂游戏实时 AI 指导 / In-game step-by-step AI Assistant for Maj-soul
https://mjcopilot.com
GNU General Public License v3.0
402 stars 48 forks source link

程序正常运行但是无法产生ai提示 #59

Open l68728 opened 2 months ago

l68728 commented 2 months ago

main.py程序能跑通 使用了本地模型local mortal.pth,进入对局后无法显示ai提示。 系统macOS14.6.1 代码如下

2024-09-05 00:06:07,202 ERROR [BotThread]game_state.py:610 | Bot react error: failed to get reaction

Caused by:
    0: failed to execute `react_batch` on Python engine
    1: RuntimeError: Could not infer dtype of numpy.float32
Traceback (most recent call last):
  File "/Users/s/Downloads/aa/game/game_state.py", line 608, in _react_all
    output_reaction = self.mjai_bot.react_batch(self.mjai_pending_input_msgs)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/s/Downloads/aa/bot/bot.py", line 74, in react_batch
    last_reaction = self.react(input_list[-1])
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/s/Downloads/aa/bot/bot.py", line 125, in react
    react_str = self.mjai_bot.react(str_input)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: failed to get reaction

Caused by:
    0: failed to execute `react_batch` on Python engine
    1: RuntimeError: Could not infer dtype of numpy.float32

或者是否能打包一个mac版本的客户端?