File size: 1,719 Bytes
079c32c |
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
from easydict import EasyDict
bigfish_plr_config = dict(
exp_name='bigfish_plr_seed1',
env=dict(
is_train=True,
control_level=False,
env_id='bigfish',
collector_env_num=64,
evaluator_env_num=10,
n_evaluator_episode=50,
stop_value=40,
),
policy=dict(
cuda=True,
model=dict(
obs_shape=[3, 64, 64],
action_shape=15,
encoder_hidden_size_list=[16, 32, 32],
actor_head_hidden_size=256,
critic_head_hidden_size=256,
impala_cnn_encoder=True,
),
learn=dict(
learning_rate=0.0005,
actor_epoch_per_collect=1,
critic_epoch_per_collect=1,
value_norm=True,
batch_size=16384,
value_weight=0.5,
entropy_weight=0.01,
clip_ratio=0.2,
aux_freq=1,
),
collect=dict(n_sample=16384, ),
eval=dict(evaluator=dict(eval_freq=96, )),
other=dict(),
),
level_replay=dict(
strategy='min_margin',
score_transform='rank',
temperature=0.1,
),
)
bigfish_plr_config = EasyDict(bigfish_plr_config)
main_config = bigfish_plr_config
bigfish_plr_create_config = dict(
env=dict(
type='procgen',
import_names=['dizoo.procgen.envs.procgen_env'],
),
env_manager=dict(type='subprocess', ),
policy=dict(type='ppg'),
)
bigfish_plr_create_config = EasyDict(bigfish_plr_create_config)
create_config = bigfish_plr_create_config
if __name__ == "__main__":
from ding.entry.serial_entry_plr import serial_pipeline_plr
serial_pipeline_plr([main_config, create_config], seed=0)
|