Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

叫地主后闪退 #11

Open
icekylinH opened this issue Sep 8, 2022 · 0 comments
Open

叫地主后闪退 #11

icekylinH opened this issue Sep 8, 2022 · 0 comments

Comments

@icekylinH
Copy link

icekylinH commented Sep 8, 2022

叫牌预估得分: 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant