python_code stringlengths 0 187k | repo_name stringlengths 8 46 | file_path stringlengths 6 135 |
|---|---|---|
import os
import sys
root_dir = os.path.normpath(os.path.dirname(os.path.realpath(__file__)) + "/..")
sys.path.insert(0, root_dir)
import ai2thor.controller
c = ai2thor.controller.Controller(
scene="FloorPlan1_physics",
gridSize=0.25,
width=900,
height=900,
agentMode="arm",
fieldOfView=100,
... | ai2thor-main | arm_test/arm_counter_30fps_simulate.py |
import os
import sys
root_dir = os.path.normpath(os.path.dirname(os.path.realpath(__file__)) + "/..")
sys.path.insert(0, root_dir)
from arm_test.base import standard_pose, execute_actions
import arm_test.base
# pp
# inita
# rr
# mmlah 1 1
# telefull
# mmlah 0.5203709825292535 2 True
# pac
# mmla 0.01000303 -1.6391277... | ai2thor-main | arm_test/arm_stuck_test_wait_frame.py |
import os
import sys
root_dir = os.path.normpath(os.path.dirname(os.path.realpath(__file__)) + "/..")
sys.path.insert(0, root_dir)
import time
import random
from ai2thor.controller import Controller
c = Controller(
scene="FloorPlan1_physics",
gridSize=0.25,
width=900,
height=900,
agentMode="arm",... | ai2thor-main | arm_test/arm_counter_30fps_fixed_update_random_sleep.py |
import os
import sys
root_dir = os.path.normpath(os.path.dirname(os.path.realpath(__file__)) + "/..")
sys.path.insert(0, root_dir)
from arm_test.base import standard_pose, execute_actions
import arm_test.base
# pp
# inita
# rr
# mmlah 1 1
# telefull
# mmlah 0.5203709825292535 2 True
# pac
# mmla 0.01000303 -1.6391277... | ai2thor-main | arm_test/arm_stuck_test.py |
import os
import sys
import argparse
import random
import time
import boto3
import getpass
import ai2thor.controller
import ai2thor.fifo_server
import uuid
import cv2
from tasks import _local_build_path
# ai2thor.controller.COMMIT_ID ='fd7cf8d59c5a01f5aadc7f9379b0f579e9139ace'
parser = argparse.ArgumentParser(descrip... | ai2thor-main | arm_test/base.py |
import os
import sys
root_dir = os.path.normpath(os.path.dirname(os.path.realpath(__file__)) + "/..")
sys.path.insert(0, root_dir)
from arm_test.base import standard_pose, execute_actions
actions = [
{
"action": "MoveMidLevelArm",
"disableRendering": False,
"position": {"x": 0.059573404, "... | ai2thor-main | arm_test/arm_counter_30fps_simulate_pause_return_start.py |
#!/usr/bin/env python
"""
Script that maintains the Private directory checkout - intended to be run
immediately after switching branches in the parent ai2thor project
"""
import os
import subprocess
private_repo_url = "https://github.com/allenai/ai2thor-private"
base_dir = os.path.normpath(
os.path.join(os.path.... | ai2thor-main | scripts/update_private.py |
import os
from pathlib import Path
ABS_PATH_OF_TOP_LEVEL_DIR = os.path.abspath(os.path.dirname(Path(__file__)))
ABS_PATH_OF_DOCS_DIR = os.path.join(ABS_PATH_OF_TOP_LEVEL_DIR, "docs")
| ask4help-main | constants.py |
#!/usr/bin/env python3
"""Entry point to training/validating/testing for a user given experiment
name."""
import allenact.main
if __name__ == "__main__":
allenact.main.main()
| ask4help-main | main.py |
ask4help-main | projects/__init__.py | |
ask4help-main | projects/gym_baselines/__init__.py | |
from abc import ABC
from typing import Dict, Sequence, Optional, List, Any
from allenact.base_abstractions.experiment_config import ExperimentConfig
from allenact.base_abstractions.sensor import Sensor
class GymBaseConfig(ExperimentConfig, ABC):
SENSORS: Optional[Sequence[Sensor]] = None
def _get_sampler_a... | ask4help-main | projects/gym_baselines/experiments/gym_base.py |
from abc import ABC
from typing import Dict, Any
from allenact.utils.viz_utils import VizSuite, AgentViewViz
from projects.gym_baselines.experiments.gym_base import GymBaseConfig
class GymHumanoidBaseConfig(GymBaseConfig, ABC):
@classmethod
def machine_params(cls, mode="train", **kwargs) -> Dict[str, Any]:
... | ask4help-main | projects/gym_baselines/experiments/gym_humanoid_base.py |
from abc import ABC
from typing import Dict, Any
from allenact.utils.viz_utils import VizSuite, AgentViewViz
from projects.gym_baselines.experiments.gym_base import GymBaseConfig
class GymMoJoCoBaseConfig(GymBaseConfig, ABC):
@classmethod
def machine_params(cls, mode="train", **kwargs) -> Dict[str, Any]:
... | ask4help-main | projects/gym_baselines/experiments/gym_mujoco_base.py |
from abc import ABC
from typing import cast
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses.ppo import PPO
from allenact.utils.experiment_utils import (
TrainingPipeline,
Builder,
PipelineStage,
LinearDecay,
)
from projects.gym_... | ask4help-main | projects/gym_baselines/experiments/gym_humanoid_ddppo.py |
ask4help-main | projects/gym_baselines/experiments/__init__.py | |
from abc import ABC
from typing import cast
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses.ppo import PPO
from allenact.utils.experiment_utils import (
TrainingPipeline,
Builder,
PipelineStage,
LinearDecay,
)
from projects.gym_... | ask4help-main | projects/gym_baselines/experiments/gym_mujoco_ddppo.py |
from typing import Dict, List, Any
import gym
import torch.nn as nn
from allenact.base_abstractions.experiment_config import TaskSampler
from allenact.base_abstractions.sensor import SensorSuite
from allenact_plugins.gym_plugin.gym_models import MemorylessActorCritic
from allenact_plugins.gym_plugin.gym_sensors impor... | ask4help-main | projects/gym_baselines/experiments/mujoco/gym_mujoco_swimmer_ddppo.py |
from typing import Dict, List, Any
import gym
import torch.nn as nn
from allenact.base_abstractions.experiment_config import TaskSampler
from allenact.base_abstractions.sensor import SensorSuite
from allenact_plugins.gym_plugin.gym_models import MemorylessActorCritic
from allenact_plugins.gym_plugin.gym_sensors impor... | ask4help-main | projects/gym_baselines/experiments/mujoco/gym_mujoco_reacher_ddppo.py |
from typing import Dict, List, Any
import gym
import torch.nn as nn
from allenact.base_abstractions.experiment_config import TaskSampler
from allenact.base_abstractions.sensor import SensorSuite
from allenact_plugins.gym_plugin.gym_models import MemorylessActorCritic
from allenact_plugins.gym_plugin.gym_sensors impor... | ask4help-main | projects/gym_baselines/experiments/mujoco/gym_mujoco_walker2d_ddppo.py |
ask4help-main | projects/gym_baselines/experiments/mujoco/__init__.py | |
from typing import Dict, List, Any
import gym
import torch.nn as nn
from allenact.base_abstractions.experiment_config import TaskSampler
from allenact.base_abstractions.sensor import SensorSuite
from allenact_plugins.gym_plugin.gym_models import MemorylessActorCritic
from allenact_plugins.gym_plugin.gym_sensors impor... | ask4help-main | projects/gym_baselines/experiments/mujoco/gym_mujoco_halfcheetah_ddppo.py |
from typing import Dict, List, Any
import gym
import torch.nn as nn
from allenact.base_abstractions.experiment_config import TaskSampler
from allenact.base_abstractions.sensor import SensorSuite
from allenact_plugins.gym_plugin.gym_models import MemorylessActorCritic
from allenact_plugins.gym_plugin.gym_sensors impor... | ask4help-main | projects/gym_baselines/experiments/mujoco/gym_mujoco_humanoid_ddppo.py |
from typing import Dict, List, Any
import gym
import torch.nn as nn
from allenact.base_abstractions.experiment_config import TaskSampler
from allenact.base_abstractions.sensor import SensorSuite
from allenact_plugins.gym_plugin.gym_models import MemorylessActorCritic
from allenact_plugins.gym_plugin.gym_sensors impor... | ask4help-main | projects/gym_baselines/experiments/mujoco/gym_mujoco_inverteddoublependulum_ddppo.py |
from typing import Dict, List, Any
import gym
import torch.nn as nn
from allenact.base_abstractions.experiment_config import TaskSampler
from allenact.base_abstractions.sensor import SensorSuite
from allenact_plugins.gym_plugin.gym_models import MemorylessActorCritic
from allenact_plugins.gym_plugin.gym_sensors impor... | ask4help-main | projects/gym_baselines/experiments/mujoco/gym_mujoco_ant_ddppo.py |
from typing import Dict, List, Any
import gym
import torch.nn as nn
from allenact.base_abstractions.experiment_config import TaskSampler
from allenact.base_abstractions.sensor import SensorSuite
from allenact_plugins.gym_plugin.gym_models import MemorylessActorCritic
from allenact_plugins.gym_plugin.gym_sensors impor... | ask4help-main | projects/gym_baselines/experiments/mujoco/gym_mujoco_hopper_ddppo.py |
from typing import Dict, List, Any
import gym
import torch.nn as nn
from allenact.base_abstractions.experiment_config import TaskSampler
from allenact.base_abstractions.sensor import SensorSuite
from allenact_plugins.gym_plugin.gym_models import MemorylessActorCritic
from allenact_plugins.gym_plugin.gym_sensors impor... | ask4help-main | projects/gym_baselines/experiments/mujoco/gym_mujoco_invertedpendulum_ddppo.py |
ask4help-main | projects/gym_baselines/models/__init__.py | |
"""
Note: I add this file just for the format consistence with other baselines in the project, so it is just the same as
`allenact_plugins.gym_models.py` so far. However, if it is in the Gym Robotics, some modification is need.
For example, for `state_dim`:
if input_uuid == 'gym_robotics_data':
# co... | ask4help-main | projects/gym_baselines/models/gym_models.py |
ask4help-main | projects/objectnav_baselines/__init__.py | |
from typing import Sequence, Union
import gym
import torch.nn as nn
from allenact.base_abstractions.preprocessor import Preprocessor
from allenact.embodiedai.sensors.vision_sensors import RGBSensor, DepthSensor
from allenact.utils.experiment_utils import Builder
from allenact_plugins.ithor_plugin.ithor_sensors import... | ask4help-main | projects/objectnav_baselines/experiments/objectnav_mixin_unfrozenresnet_gru.py |
ask4help-main | projects/objectnav_baselines/experiments/__init__.py | |
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses import PPO
from allenact.algorithms.onpolicy_sync.losses.grouped_action_imitation import (
GroupedActionImitation,
)
from allenact.algorithms.onpolicy_sync.losses.ppo import PPOConfig
from allena... | ask4help-main | projects/objectnav_baselines/experiments/objectnav_thor_mixin_ddppo_and_gbc.py |
from projects.objectnav_baselines.experiments.objectnav_mixin_resnetgru import (
ObjectNavMixInResNetGRUConfig,
)
class ObjectNavMixInResNet18GRUConfig(ObjectNavMixInResNetGRUConfig):
RESNET_TYPE: str = "RN18"
| ask4help-main | projects/objectnav_baselines/experiments/objectnav_mixin_resnet18gru.py |
import glob
import os
import platform
from abc import ABC
from math import ceil
from typing import Dict, Any, List, Optional, Sequence, Tuple, cast
import gym
import numpy as np
import torch
from allenact.base_abstractions.experiment_config import MachineParams
from allenact.base_abstractions.preprocessor import Sens... | ask4help-main | projects/objectnav_baselines/experiments/objectnav_thor_base.py |
from typing import Sequence, Union
import gym
import torch.nn as nn
from torchvision import models
from allenact.base_abstractions.preprocessor import Preprocessor
from allenact.embodiedai.preprocessors.resnet import ResNetPreprocessor
from allenact.embodiedai.sensors.vision_sensors import RGBSensor, DepthSensor
from... | ask4help-main | projects/objectnav_baselines/experiments/objectnav_mixin_resnetgru.py |
from abc import ABC
from typing import Optional, Sequence, Union
from allenact.base_abstractions.experiment_config import ExperimentConfig
from allenact.base_abstractions.preprocessor import Preprocessor
from allenact.base_abstractions.sensor import Sensor
from allenact.utils.experiment_utils import Builder
class Ob... | ask4help-main | projects/objectnav_baselines/experiments/objectnav_base.py |
from typing import Dict, Tuple
import torch
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses.abstract_loss import (
AbstractActorCriticLoss,
)
from allenact.algorithms.onpolicy_sync.losses import PPO
from allenact.algorithms.onpolicy_sync.losse... | ask4help-main | projects/objectnav_baselines/experiments/objectnav_mixin_ddppo.py |
import torch
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses.imitation import Imitation
from allenact.utils.experiment_utils import (
Builder,
PipelineStage,
TrainingPipeline,
LinearDecay,
)
from projects.objectnav_baselines.experi... | ask4help-main | projects/objectnav_baselines/experiments/objectnav_mixin_dagger.py |
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from projects.objectnav_baselines.experiments.objectnav_mixin_ddppo import (
ObjectNavMixInPPOConfig,
)
from projects.objectnav_baselines.experiments.objectnav_mixin_resnetgru import (
ObjectNavMixInResN... | ask4help-main | projects/objectnav_baselines/experiments/robothor/objectnav_robothor_rgb_resnet50gru_ddppo.py |
import os
from abc import ABC
from typing import Optional, List, Any, Dict
import torch
from allenact.utils.misc_utils import prepare_locals_for_super
from projects.objectnav_baselines.experiments.objectnav_thor_base import (
ObjectNavThorBaseConfig,
)
class ObjectNavRoboThorBaseConfig(ObjectNavThorBaseConfig, ... | ask4help-main | projects/objectnav_baselines/experiments/robothor/objectnav_robothor_base.py |
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from projects.objectnav_baselines.experiments.objectnav_mixin_ddppo import (
ObjectNavMixInPPOConfig,
)
from projects.objectnav_baselines.experiments.objectnav_mixin_resnet18gru import (
ObjectNavMixInRe... | ask4help-main | projects/objectnav_baselines/experiments/robothor/objectnav_robothor_rgb_resnetgru_ddppo.py |
from allenact.base_abstractions.sensor import ExpertActionSensor
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from allenact_plugins.robothor_plugin.robothor_tasks import ObjectNavTask
from projects.objectnav_baselines.experiments.objectnav_mixin_dagger imp... | ask4help-main | projects/objectnav_baselines/experiments/robothor/objectnav_robothor_rgb_resnetgru_dagger.py |
ask4help-main | projects/objectnav_baselines/experiments/robothor/__init__.py | |
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from allenact_plugins.robothor_plugin.robothor_sensors import DepthSensorThor
from projects.objectnav_baselines.experiments.objectnav_mixin_ddppo import (
ObjectNavMixInPPOConfig,
)
from projects.objectnav_b... | ask4help-main | projects/objectnav_baselines/experiments/robothor/objectnav_robothor_rgbd_resnetgru_ddppo.py |
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from projects.objectnav_baselines.experiments.objectnav_mixin_resnet18gru import (
ObjectNavMixInResNet18GRUConfig,
)
from projects.objectnav_baselines.experiments.objectnav_thor_mixin_ddppo_and_gbc import (... | ask4help-main | projects/objectnav_baselines/experiments/robothor/objectnav_robothor_rgb_resnetgru_ddppo_and_gbc.py |
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from projects.objectnav_baselines.experiments.objectnav_mixin_ddppo import (
ObjectNavMixInPPOConfig,
)
from projects.objectnav_baselines.experiments.objectnav_mixin_unfrozenresnet_gru import (
ObjectNav... | ask4help-main | projects/objectnav_baselines/experiments/robothor/objectnav_robothor_rgb_unfrozenresnet_gru_ddppo.py |
from allenact_plugins.ithor_plugin.ithor_sensors import GoalObjectTypeThorSensor
from allenact_plugins.robothor_plugin.robothor_sensors import DepthSensorThor
from projects.objectnav_baselines.experiments.objectnav_mixin_ddppo import (
ObjectNavMixInPPOConfig,
)
from projects.objectnav_baselines.experiments.objectn... | ask4help-main | projects/objectnav_baselines/experiments/robothor/objectnav_robothor_depth_resnetgru_ddppo.py |
import math
from typing import Optional, Sequence
import torch
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses import PPO
from allenact.algorithms.onpolicy_sync.losses.ppo import PPOConfig
from projects.objectnav_baselines.experiments.robothor.cl... | ask4help-main | projects/objectnav_baselines/experiments/robothor/clip/objectnav_robothor_distr.py |
from allenact_plugins.clip_plugin.clip_preprocessors import ClipResNetPreprocessor
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from allenact.base_abstractions.sensor import ExpertActionSensor
from projects.objectnav_baselines.experiments.clip.objectnav_m... | ask4help-main | projects/objectnav_baselines/experiments/robothor/clip/objectnav_robothor_rgb_clipresnet50gru_finetune_ask_end_ddppo.py |
from allenact_plugins.clip_plugin.clip_preprocessors import ClipResNetPreprocessor
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from allenact_plugins.robothor_plugin.robothor_sensors import (RewardConfigSensor)
from allenact.base_abstractions.sensor impor... | ask4help-main | projects/objectnav_baselines/experiments/robothor/clip/objectnav_robothor_rgb_clipresnet50gru_finetune_ask_adaptive_reward_ddppo.py |
from allenact_plugins.clip_plugin.clip_preprocessors import ClipResNetPreprocessor
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from allenact.base_abstractions.sensor import ExpertActionSensor
from projects.objectnav_baselines.experiments.clip.objectnav_m... | ask4help-main | projects/objectnav_baselines/experiments/robothor/clip/objectnav_robothor_rgb_clipresnet50gru_ddppo.py |
from typing import Dict, Tuple
from allenact_plugins.clip_plugin.clip_preprocessors import ClipResNetPreprocessor
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from allenact.algorithms.onpolicy_sync.losses.abstract_loss import (
AbstractActorCriticLos... | ask4help-main | projects/objectnav_baselines/experiments/robothor/clip/objectnav_robothor_rgb_clipresnet50gru_finetune_ask_ddppo.py |
from allenact_plugins.clip_plugin.clip_preprocessors import ClipResNetPreprocessor
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from projects.objectnav_baselines.experiments.clip.objectnav_mixin_clipresnetgru import (
ObjectNavMixInClipResNetGRUConfig,... | ask4help-main | projects/objectnav_baselines/experiments/robothor/clip/objectnav_robothor_rgb_clipresnet50x16gru_ddppo.py |
from allenact_plugins.clip_plugin.clip_preprocessors import ClipResNetPreprocessor
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from projects.objectnav_baselines.experiments.clip.objectnav_zeroshot_mixin_clip_gru import (
ObjectNavZeroShotMixInClipGRUC... | ask4help-main | projects/objectnav_baselines/experiments/robothor/clip/objectnav_robothor_zeroshot_rgb_clipgru_ddppo.py |
from typing import Sequence, Union
import gym
import numpy as np
import torch.nn as nn
from allenact.base_abstractions.preprocessor import Preprocessor
from allenact_plugins.clip_plugin.clip_preprocessors import ClipResNetPreprocessor
from allenact.embodiedai.sensors.vision_sensors import RGBSensor, DepthSensor
from ... | ask4help-main | projects/objectnav_baselines/experiments/clip/objectnav_mixin_clipresnetgru.py |
from typing import Sequence, Union
import gym
import numpy as np
import torch.nn as nn
from allenact.base_abstractions.preprocessor import Preprocessor
from allenact_plugins.clip_plugin.clip_preprocessors import (
ClipResNetPreprocessor,
ClipTextPreprocessor
)
from allenact.embodiedai.sensors.vision_sensors i... | ask4help-main | projects/objectnav_baselines/experiments/clip/objectnav_zeroshot_mixin_clip_gru.py |
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from allenact_plugins.robothor_plugin.robothor_sensors import DepthSensorThor
from projects.objectnav_baselines.experiments.ithor.objectnav_ithor_base import (
ObjectNaviThorBaseConfig,
)
from projects.objec... | ask4help-main | projects/objectnav_baselines/experiments/ithor/objectnav_ithor_rgbd_resnetgru_ddppo.py |
from allenact_plugins.ithor_plugin.ithor_sensors import GoalObjectTypeThorSensor
from allenact_plugins.robothor_plugin.robothor_sensors import DepthSensorThor
from projects.objectnav_baselines.experiments.ithor.objectnav_ithor_base import (
ObjectNaviThorBaseConfig,
)
from projects.objectnav_baselines.experiments.o... | ask4help-main | projects/objectnav_baselines/experiments/ithor/objectnav_ithor_depth_resnetgru_ddppo.py |
from allenact_plugins.ithor_plugin.ithor_sensors import (
RGBSensorThor,
GoalObjectTypeThorSensor,
)
from projects.objectnav_baselines.experiments.ithor.objectnav_ithor_base import (
ObjectNaviThorBaseConfig,
)
from projects.objectnav_baselines.experiments.objectnav_mixin_ddppo import (
ObjectNavMixInPP... | ask4help-main | projects/objectnav_baselines/experiments/ithor/objectnav_ithor_rgb_resnetgru_ddppo.py |
ask4help-main | projects/objectnav_baselines/experiments/ithor/__init__.py | |
import os
from abc import ABC
import torch
from projects.objectnav_baselines.experiments.objectnav_thor_base import (
ObjectNavThorBaseConfig,
)
class ObjectNaviThorBaseConfig(ObjectNavThorBaseConfig, ABC):
"""The base config for all iTHOR ObjectNav experiments."""
THOR_COMMIT_ID = "9549791ce2e7f472063... | ask4help-main | projects/objectnav_baselines/experiments/ithor/objectnav_ithor_base.py |
"""Baseline models for use in the object navigation task.
Object navigation is currently available as a Task in AI2-THOR and
Facebook's Habitat.
"""
from typing import Tuple, Dict, Optional, cast, List
import gym
import torch
import torch.nn as nn
from gym.spaces.dict import Dict as SpaceDict
from allenact.algorithm... | ask4help-main | projects/objectnav_baselines/models/object_nav_models.py |
ask4help-main | projects/objectnav_baselines/models/__init__.py | |
ask4help-main | projects/babyai_baselines/__init__.py | |
ask4help-main | projects/babyai_baselines/experiments/__init__.py | |
from abc import ABC
from typing import Dict, Any, List, Optional, Union, Sequence, cast
import gym
import torch
import torch.nn as nn
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses import PPO, A2C
from allenact.algorithms.onpolicy_sync.losses.a2... | ask4help-main | projects/babyai_baselines/experiments/base.py |
from allenact.utils.experiment_utils import PipelineStage
from projects.babyai_baselines.experiments.go_to_local.base import (
BaseBabyAIGoToLocalExperimentConfig,
)
class PPOBabyAIGoToLocalExperimentConfig(BaseBabyAIGoToLocalExperimentConfig):
"""Behavior clone then PPO."""
USE_EXPERT = True
@class... | ask4help-main | projects/babyai_baselines/experiments/go_to_local/bc.py |
import os
from typing import Sequence, Optional
import torch
from allenact.utils.experiment_utils import PipelineStage, OffPolicyPipelineComponent
from allenact_plugins.babyai_plugin.babyai_constants import (
BABYAI_EXPERT_TRAJECTORIES_DIR,
)
from allenact_plugins.minigrid_plugin.minigrid_offpolicy import (
M... | ask4help-main | projects/babyai_baselines/experiments/go_to_local/distributed_bc_offpolicy.py |
from allenact.utils.experiment_utils import PipelineStage, LinearDecay
from projects.babyai_baselines.experiments.go_to_local.base import (
BaseBabyAIGoToLocalExperimentConfig,
)
class DaggerBabyAIGoToLocalExperimentConfig(BaseBabyAIGoToLocalExperimentConfig):
"""Find goal in lighthouse env using imitation le... | ask4help-main | projects/babyai_baselines/experiments/go_to_local/dagger.py |
ask4help-main | projects/babyai_baselines/experiments/go_to_local/__init__.py | |
import torch
from allenact.utils.experiment_utils import PipelineStage, LinearDecay
from projects.babyai_baselines.experiments.go_to_local.base import (
BaseBabyAIGoToLocalExperimentConfig,
)
class BCTeacherForcingBabyAIGoToLocalExperimentConfig(
BaseBabyAIGoToLocalExperimentConfig
):
"""Behavior clone w... | ask4help-main | projects/babyai_baselines/experiments/go_to_local/bc_teacher_forcing.py |
import torch
from .bc_teacher_forcing import BCTeacherForcingBabyAIGoToLocalExperimentConfig
class DistributedBCTeacherForcingBabyAIGoToLocalExperimentConfig(
BCTeacherForcingBabyAIGoToLocalExperimentConfig
):
"""Distributed behavior clone with teacher forcing."""
USE_EXPERT = True
GPU_ID = 0 if to... | ask4help-main | projects/babyai_baselines/experiments/go_to_local/distributed_bc_teacher_forcing.py |
import torch
from allenact.utils.experiment_utils import PipelineStage
from projects.babyai_baselines.experiments.go_to_local.base import (
BaseBabyAIGoToLocalExperimentConfig,
)
class PPOBabyAIGoToLocalExperimentConfig(BaseBabyAIGoToLocalExperimentConfig):
"""PPO only."""
NUM_TRAIN_SAMPLERS: int = (
... | ask4help-main | projects/babyai_baselines/experiments/go_to_local/ppo.py |
import torch
from allenact.utils.experiment_utils import PipelineStage
from projects.babyai_baselines.experiments.go_to_local.base import (
BaseBabyAIGoToLocalExperimentConfig,
)
class A2CBabyAIGoToLocalExperimentConfig(BaseBabyAIGoToLocalExperimentConfig):
"""A2C only."""
NUM_TRAIN_SAMPLERS: int = (
... | ask4help-main | projects/babyai_baselines/experiments/go_to_local/a2c.py |
from abc import ABC
from typing import Dict, List, Optional, Union, Any, cast
import gym
import torch
import torch.nn as nn
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.base_abstractions.misc import Loss
from allenact.base_abstractions.sensor import SensorSuite
from allenact... | ask4help-main | projects/babyai_baselines/experiments/go_to_local/base.py |
from allenact.utils.experiment_utils import PipelineStage
from projects.babyai_baselines.experiments.go_to_obj.base import (
BaseBabyAIGoToObjExperimentConfig,
)
class PPOBabyAIGoToObjExperimentConfig(BaseBabyAIGoToObjExperimentConfig):
"""Behavior clone then PPO."""
USE_EXPERT = True
@classmethod
... | ask4help-main | projects/babyai_baselines/experiments/go_to_obj/bc.py |
from allenact.utils.experiment_utils import PipelineStage, LinearDecay
from projects.babyai_baselines.experiments.go_to_obj.base import (
BaseBabyAIGoToObjExperimentConfig,
)
class DaggerBabyAIGoToObjExperimentConfig(BaseBabyAIGoToObjExperimentConfig):
"""Find goal in lighthouse env using imitation learning.
... | ask4help-main | projects/babyai_baselines/experiments/go_to_obj/dagger.py |
ask4help-main | projects/babyai_baselines/experiments/go_to_obj/__init__.py | |
from allenact.utils.experiment_utils import PipelineStage, LinearDecay
from projects.babyai_baselines.experiments.go_to_obj.base import (
BaseBabyAIGoToObjExperimentConfig,
)
class PPOBabyAIGoToObjExperimentConfig(BaseBabyAIGoToObjExperimentConfig):
"""Behavior clone (with teacher forcing) then PPO."""
U... | ask4help-main | projects/babyai_baselines/experiments/go_to_obj/bc_teacher_forcing.py |
from allenact.utils.experiment_utils import PipelineStage
from projects.babyai_baselines.experiments.go_to_obj.base import (
BaseBabyAIGoToObjExperimentConfig,
)
class PPOBabyAIGoToObjExperimentConfig(BaseBabyAIGoToObjExperimentConfig):
"""PPO only."""
@classmethod
def tag(cls):
return "BabyA... | ask4help-main | projects/babyai_baselines/experiments/go_to_obj/ppo.py |
from allenact.utils.experiment_utils import PipelineStage
from projects.babyai_baselines.experiments.go_to_obj.base import (
BaseBabyAIGoToObjExperimentConfig,
)
class A2CBabyAIGoToObjExperimentConfig(BaseBabyAIGoToObjExperimentConfig):
"""A2C only."""
TOTAL_RL_TRAIN_STEPS = int(1e5)
@classmethod
... | ask4help-main | projects/babyai_baselines/experiments/go_to_obj/a2c.py |
from abc import ABC
from typing import Dict, List, Optional, Union, cast
import gym
import torch.nn as nn
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.base_abstractions.misc import Loss
from allenact.base_abstractions.sensor import SensorSuite
from allenact.utils.experiment_... | ask4help-main | projects/babyai_baselines/experiments/go_to_obj/base.py |
ask4help-main | projects/pointnav_baselines/__init__.py | |
from abc import ABC
from typing import Optional, Sequence, Union
from allenact.base_abstractions.experiment_config import ExperimentConfig
from allenact.base_abstractions.preprocessor import Preprocessor
from allenact.base_abstractions.sensor import Sensor
from allenact.utils.experiment_utils import Builder
class Po... | ask4help-main | projects/pointnav_baselines/experiments/pointnav_base.py |
ask4help-main | projects/pointnav_baselines/experiments/__init__.py | |
from abc import ABC
import torch
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses import PPO
from allenact.algorithms.onpolicy_sync.losses.ppo import PPOConfig
from allenact.utils.experiment_utils import (
Builder,
PipelineStage,
Train... | ask4help-main | projects/pointnav_baselines/experiments/pointnav_habitat_mixin_ddppo.py |
from abc import ABC
import gym
import torch.nn as nn
from allenact.embodiedai.sensors.vision_sensors import RGBSensor, DepthSensor
# fmt: off
try:
# Habitat may not be installed, just create a fake class here in that case
from allenact_plugins.habitat_plugin.habitat_sensors import TargetCoordinatesSensorHabi... | ask4help-main | projects/pointnav_baselines/experiments/pointnav_mixin_simpleconvgru.py |
from abc import ABC
from typing import Dict, Tuple
import torch
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses.abstract_loss import (
AbstractActorCriticLoss,
)
from allenact.algorithms.onpolicy_sync.losses import PPO
from allenact.algorithm... | ask4help-main | projects/pointnav_baselines/experiments/pointnav_thor_mixin_ddppo.py |
from abc import ABC
import torch
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses import PPO
from allenact.algorithms.onpolicy_sync.losses.grouped_action_imitation import (
GroupedActionImitation,
)
from allenact.algorithms.onpolicy_sync.losse... | ask4help-main | projects/pointnav_baselines/experiments/pointnav_thor_mixin_ddppo_and_gbc.py |
import glob
import os
import platform
from abc import ABC
from math import ceil
from typing import Dict, Any, List, Optional, Sequence
import ai2thor
import gym
import numpy as np
import torch
from packaging import version
from allenact.base_abstractions.experiment_config import MachineParams
from allenact.base_abstr... | ask4help-main | projects/pointnav_baselines/experiments/pointnav_thor_base.py |
from allenact_plugins.ithor_plugin.ithor_sensors import RGBSensorThor
from allenact_plugins.robothor_plugin.robothor_sensors import (
DepthSensorThor,
GPSCompassSensorRoboThor,
)
from projects.pointnav_baselines.experiments.pointnav_mixin_simpleconvgru import (
PointNavMixInSimpleConvGRUConfig,
)
from proje... | ask4help-main | projects/pointnav_baselines/experiments/robothor/pointnav_robothor_rgbd_simpleconvgru_ddppo.py |
from allenact_plugins.robothor_plugin.robothor_sensors import (
DepthSensorThor,
GPSCompassSensorRoboThor,
)
from projects.pointnav_baselines.experiments.pointnav_mixin_simpleconvgru import (
PointNavMixInSimpleConvGRUConfig,
)
from projects.pointnav_baselines.experiments.pointnav_thor_mixin_ddppo import (
... | ask4help-main | projects/pointnav_baselines/experiments/robothor/pointnav_robothor_depth_simpleconvgru_ddppo.py |
ask4help-main | projects/pointnav_baselines/experiments/robothor/__init__.py | |
from allenact_plugins.ithor_plugin.ithor_sensors import RGBSensorThor
from allenact_plugins.robothor_plugin.robothor_sensors import GPSCompassSensorRoboThor
from projects.pointnav_baselines.experiments.pointnav_mixin_simpleconvgru import (
PointNavMixInSimpleConvGRUConfig,
)
from projects.pointnav_baselines.experim... | ask4help-main | projects/pointnav_baselines/experiments/robothor/pointnav_robothor_rgb_simpleconvgru_ddppo.py |
from allenact_plugins.ithor_plugin.ithor_sensors import RGBSensorThor
from allenact_plugins.robothor_plugin.robothor_sensors import GPSCompassSensorRoboThor
from projects.pointnav_baselines.experiments.pointnav_mixin_simpleconvgru import (
PointNavMixInSimpleConvGRUConfig,
)
from projects.pointnav_baselines.experim... | ask4help-main | projects/pointnav_baselines/experiments/robothor/pointnav_robothor_rgb_simpleconvgru_ddppo_and_gbc.py |
import os
from abc import ABC
from projects.pointnav_baselines.experiments.pointnav_thor_base import (
PointNavThorBaseConfig,
)
class PointNavRoboThorBaseConfig(PointNavThorBaseConfig, ABC):
"""The base config for all iTHOR PointNav experiments."""
NUM_PROCESSES = 60
TRAIN_DATASET_DIR = os.path.jo... | ask4help-main | projects/pointnav_baselines/experiments/robothor/pointnav_robothor_base.py |
from allenact_plugins.habitat_plugin.habitat_sensors import (
RGBSensorHabitat,
TargetCoordinatesSensorHabitat,
)
from projects.pointnav_baselines.experiments.habitat.pointnav_habitat_base import (
PointNavHabitatBaseConfig,
)
from projects.pointnav_baselines.experiments.pointnav_habitat_mixin_ddppo import ... | ask4help-main | projects/pointnav_baselines/experiments/habitat/pointnav_habitat_rgb_simpleconvgru_ddppo.py |
from allenact_plugins.habitat_plugin.habitat_sensors import (
RGBSensorHabitat,
DepthSensorHabitat,
TargetCoordinatesSensorHabitat,
)
from projects.pointnav_baselines.experiments.habitat.pointnav_habitat_base import (
PointNavHabitatBaseConfig,
)
from projects.pointnav_baselines.experiments.pointnav_hab... | ask4help-main | projects/pointnav_baselines/experiments/habitat/pointnav_habitat_rgbd_simpleconvgru_ddppo.py |
ask4help-main | projects/pointnav_baselines/experiments/habitat/__init__.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.