Skip to content

aug_func() got an unexpected keyword argument 'obs_type' #11

Description

@titanium-47

When I run the UW-Position-Pit-Spot-v0 task using the command python scripts/reinforcement_learning/rsl_rl/train.py --task UW-Position-Pit-Spot-v0 --num_envs 1024, I get the following error
TypeError: aug_func() got an unexpected keyword argument 'obs_type'

I found that a fix for this issue is to go into UWLab/source/uwlab_tasks/uwlab_tasks/manager_based/locomotion/advance_skills/config/spot/augment.py and change aug_func to accept a keyword argument of obs_type instead of is_critic.

def aug_func(obs=None, actions=None, env=None, obs_type="policy"):
    aug_obs = None
    aug_act = None
    if obs is not None:
        if obs_type == "critic":
            aug_obs = aug_observation(obs)
        aug_obs = aug_observation(obs)
    if actions is not None:
        aug_act = aug_action(actions)
    return aug_obs, aug_act

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions