|
108 | 108 | def correct_for_frame_skip(cfg: "DictConfig") -> "DictConfig": # noqa: F821
|
109 | 109 | """Correct the arguments for the input frame_skip, by dividing all the arguments that reflect a count of frames by the frame_skip.
|
110 | 110 |
|
111 |
| - This is aimed at avoiding unknowingly over-sampling from the environment, i.e. targetting a total number of frames |
| 111 | + This is aimed at avoiding unknowingly over-sampling from the environment, i.e. targeting a total number of frames |
112 | 112 | of 1M but actually collecting frame_skip * 1M frames.
|
113 | 113 |
|
114 | 114 | Args:
|
@@ -578,7 +578,7 @@ def transformed_env_constructor(
|
578 | 578 | stats (dict, optional): a dictionary containing the :obj:`loc` and :obj:`scale` for the `ObservationNorm` transform
|
579 | 579 | norm_obs_only (bool, optional): If `True` and `VecNorm` is used, the reward won't be normalized online.
|
580 | 580 | Default is `False`.
|
581 |
| - use_env_creator (bool, optional): wheter the `EnvCreator` class should be used. By using `EnvCreator`, |
| 581 | + use_env_creator (bool, optional): whether the `EnvCreator` class should be used. By using `EnvCreator`, |
582 | 582 | one can make sure that running statistics will be put in shared memory and accessible for all workers
|
583 | 583 | when using a `VecNorm` transform. Default is `True`.
|
584 | 584 | custom_env_maker (callable, optional): if your env maker is not part
|
@@ -644,7 +644,7 @@ def make_transformed_env(**kwargs) -> TransformedEnv:
|
644 | 644 | elif custom_env_maker is None and custom_env is not None:
|
645 | 645 | env = custom_env
|
646 | 646 | else:
|
647 |
| - raise RuntimeError("cannot provive both custom_env and custom_env_maker") |
| 647 | + raise RuntimeError("cannot provide both custom_env and custom_env_maker") |
648 | 648 |
|
649 | 649 | if cfg.env.noops and custom_env is None:
|
650 | 650 | # this is a bit hacky: if custom_env is not None, it is probably a ParallelEnv
|
@@ -699,7 +699,7 @@ def initialize_observation_norm_transforms(
|
699 | 699 |
|
700 | 700 | Args:
|
701 | 701 | proof_environment (EnvBase instance, optional): if provided, this env will
|
702 |
| - be used ot execute the rollouts. If not, it will be created using |
| 702 | + be used to execute the rollouts. If not, it will be created using |
703 | 703 | the cfg object.
|
704 | 704 | num_iter (int): Number of iterations used for initializing the :obj:`ObservationNorms`
|
705 | 705 | key (str, optional): if provided, the stats of this key will be gathered.
|
|
0 commit comments