Vincentzyx / DouZero_For_HLDDZ_FullAuto

将DouZero用于欢乐斗地主自动化
Apache License 2.0
680 stars 168 forks source link

叫地主后闪退 #11

Open icekylinH opened 2 years ago

icekylinH commented 2 years ago

叫牌预估得分: 0.772 不叫预估得分: 1.234 等待加倍或叫地主...地主牌: DXX22AAAAAKQQQQQJJJTT998877666554444433 Traceback (most recent call last): File "C:\Gametools\DouZero_For_HLDDZ_FullAuto-main\main.py", line 437, in game_loop self.before_start() File "C:\Gametools\DouZero_For_HLDDZ_FullAuto-main\main.py", line 845, in before_start win_rate = LandlordModel.predict_by_model(cards_str, llcards) File "C:\Gametools\DouZero_For_HLDDZ_FullAuto-main\LandlordModel.py", line 112, in predict_by_model action_message, show_action_list = pre_env.step("landlord") File "C:\Gametools\DouZero_For_HLDDZ_FullAuto-main\douzero\env\game.py", line 156, in step action, actions_confidence, action_list = self.players[1].act(self.game_infoset) File "C:\Gametools\DouZero_For_HLDDZ_FullAuto-main\douzero\evaluation\deep_agent.py", line 44, in act obs = get_obs(infoset, model_type=self.model_type) File "C:\Gametools\DouZero_For_HLDDZ_FullAuto-main\douzero\env\env.py", line 193, in get_obs return _get_obs_resnet(infoset, infoset.player_position) File "C:\Gametools\DouZero_For_HLDDZ_FullAuto-main\douzero\env\env.py", line 598, in _get_obs_resnet three_landlord_cards = _cards2array(infoset.three_landlord_cards) File "C:\Gametools\DouZero_For_HLDDZ_FullAuto-main\douzero\env\env.py", line 228, in _cards2array matrix[:, Card2Column[card]] = NumOnes2Array[num_times] KeyError: 5