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

执行run_rl.py报错 #293

Open
skgdz opened this issue Jun 10, 2023 · 2 comments
Open

执行run_rl.py报错 #293

skgdz opened this issue Jun 10, 2023 · 2 comments

Comments

@skgdz
Copy link

skgdz commented Jun 10, 2023

部署rlcard 后 尝试运行run_rl.py 报错 麻烦问一下 该如何处理
root@ip:~/rlcard/examples# python3 run_rl.py
--> Running on the CPU

Logs saved in experiments/leduc_holdem_dqn_result/
Traceback (most recent call last):
File "run_rl.py", line 181, in
train(args)
File "run_rl.py", line 92, in train
tournament(
File "/root/rlcard/rlcard/utils/utils.py", line 210, in tournament
_, _payoffs = env.run(is_training=False)
File "/root/rlcard/rlcard/envs/env.py", line 149, in run
next_state, next_player_id = self.step(action, self.agents[player_id].use_raw)
AttributeError: 'DQNAgent' object has no attribute 'use_raw'

@daochenzha
Copy link
Member

@skgdz It is a bug. I have fixed it in the latest commit.

@skgdz
Copy link
Author

skgdz commented Jul 28, 2023

OK thank you

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

2 participants