File size: 1,413 Bytes
91263c2 | 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 64 65 |
from typing import Dict
from ml_collections import FrozenConfigDict
# The tasks we in MetaWorld.
METAWORLDTASKS = frozenset([
"assembly",
"basketball",
"button-press",
"button-press-topdown",
"door-close",
"door-open",
"drawer-open",
"faucet-close",
"faucet-open",
"hammer",
"handle-press",
"push",
"shelf-place",
])
# The tasks in robosuite
ROBOSUITETASKS = frozenset([
"NutAssemblySquare",
"Stack",
"Lift",
])
# A mapping from MetaWorld task to Gym environment name.
METAWORLD_TASK_TO_ENV_NAME: Dict[str, str] = {
k: f"{k}-v2-goal-observable"
for k in METAWORLDTASKS
}
# All available encoders.
ALGORITHMS = frozenset([
"xirl",
"tcn",
"lifs",
"goal_classifier",
])
# A mapping from x-MAGICAL embodiment to RL training iterations.
MetaWorldTrainingIterations = FrozenConfigDict({
"assembly": 2_000_000,
"basketball": 3_000_000,
"button-press": 10_000_000,
"button-press-topdown": 10_000_000,
"door-close": 2_400_000,
"door-open": 1_000_000,
"drawer-open": 1_000_000,
"faucet-close": 10_000_000,
"faucet-open": 1_000_000,
"hammer": 1_500_000,
"handle-press": 10_000_000,
"push": 10_000_000,
"shelf-place": 10_000_000,
})
RobosuiteTrainingIterations = FrozenConfigDict({
"NutAssemblySquare": 2_000_000,
"Stack": 2_000_000,
"Lift": 2_000_000,
}) |