Skip to content

Commit

Permalink
Add MultiACKTR algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
sokovninn committed Jan 25, 2023
1 parent ee12746 commit d9f91c1
Show file tree
Hide file tree
Showing 3 changed files with 775 additions and 1 deletion.
55 changes: 55 additions & 0 deletions myGym/configs/train_swipe_multi2_acktr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
#Environment
"env_name" :"Gym-v0",
"workspace" :"table",
"engine" :"pybullet",
"render" :"opengl",
"camera" :0,
"gui" :1,
"visualize" :0,
"visgym" :0,
#Robot
"robot" :"kuka",
"robot_action" :"joints",
"robot_init" :[-0.4, 0.6, 0.5],
"max_velocity" :3,
"max_force" :100,
"action_repeat" :1,
#Task
"task_type" :"pnpswipe",
"task_objects" :[{"init":{"obj_name":"sponge","fixed":0,"rand_rot":0, "sampling_area":[-0.4,-0.6,0.4,0.6,0.08,0.08]},
"goal":{"obj_name":"bar_target","fixed":1,"rand_rot":1, "sampling_area":[-0.0,-0.2,0.4,0.6,0.15,0.15]}},
{"init":{"obj_name":"sponge","fixed":0,"rand_rot":0, "sampling_area":[0.1,0.2,0.4,0.6,0.08,0.08]},
"goal":{"obj_name":"bar_target","fixed":1,"rand_rot":1, "sampling_area":[0.4,0.5,0.4,0.6,0.15,0.15]}}],
"color_dict" : {"cube_holes":[[0.2,0.5,0.2,1]], "target":[[0.3,0.3,0.3,1]]},
"used_objects" :{"num_range":[0,0], "obj_list":[]},
// Observation
// actual_state options (pick one): "endeff_xyz", "endeff_6D" (robot end effector), "obj_xyz", "obj_6D", "vae", "yolact", "voxel" or "dope"
// goal_state options (pick one): "obj_xyz", "obj_6D", "vae", "yolact", "voxel" or "dope"
// additional_obs options (pick none/one/more): "joints_xyz", "joints_angles", "endeff_xyz", "endeff_6D", "touch", "distractor"
"observation" : {"actual_state":"obj_6D", "goal_state":"obj_6D", "additional_obs":["endeff_xyz"]},
#Distractor
"distractors" : {"list":null, "moveable":1, "constant_speed":0, "movement_dims":3,
"movement_endpoints":[-0.3, 0.3, 0.4, 0.7, 0.1, 0.3]},
#Reward
"reward" :"pnpswipe",
"distance_type" :"euclidean",
"vae_path" :null,
"yolact_path" :null,
"yolact_config" :null,
#Train
"train_framework" :"tensorflow",
"algo" :"multiacktr",
"num_networks" :3,
"max_episode_steps" :1024,
"algo_steps" :1024,
"steps" :15000000,
"pretrained_model" :null,
"multiprocessing" :false,
#Evaluation
"eval_freq" :1000000,
"eval_episodes" :50,
#Saving and logging
"logdir" :"trained_models/debug",
"record" :0
}
Loading

0 comments on commit d9f91c1

Please sign in to comment.