-
Notifications
You must be signed in to change notification settings - Fork 32
/
evaluate.py
28 lines (24 loc) · 1011 Bytes
/
evaluate.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
import argparse
from perfectdou.evaluation.simulation import evaluate
if __name__ == '__main__':
parser = argparse.ArgumentParser(
'Dou Dizhu Evaluation')
parser.add_argument('--landlord', type=str,
default='baselines/douzero_ADP/landlord.ckpt')
parser.add_argument('--landlord_up', type=str,
default='baselines/sl/landlord_up.ckpt')
parser.add_argument('--landlord_down', type=str,
default='baselines/sl/landlord_down.ckpt')
parser.add_argument('--eval_data', type=str,
default='eval_data.pkl')
parser.add_argument('--num_workers', type=int, default=5)
parser.add_argument('--gpu_device', type=str, default='')
args = parser.parse_args()
os.environ['KMP_DUPLICATE_LIB_OK'] = 'True'
os.environ["CUDA_VISIBLE_DEVICES"] = args.gpu_device
evaluate(args.landlord,
args.landlord_up,
args.landlord_down,
args.eval_data,
args.num_workers)