Skip to content

Clarification Needed on Activation and Hidden Dimensions Mismatch #49

Open
@hamidh1

Description

@hamidh1

I have corrected the assert len(hidden_dims) + 1 == len(activations) but still facing the below error: How to deal with this?

File "/home/hmd/code/legged_gym/legged_gym/scripts/train.py", line 43, in
train(args)
File "/home/hmd/code/legged_gym/legged_gym/scripts/train.py", line 37, in train
ppo_runner, train_cfg = task_registry.make_alg_runner(env=env, name=args.task, args=args)
File "/home/hmd/code/legged_gym/legged_gym/utils/task_registry.py", line 147, in make_alg_runner
runner = LeggedGymRunner(env, train_cfg_dict, log_dir, device=args.rl_device)
File "/home/hmd/code/rsl_rl/rsl_rl/runners/legacy_runner.py", line 98, in init
agent: Agent = alg_class(env, device=device, **train_cfg["algorithm"])
File "/home/hmd/code/rsl_rl/rsl_rl/algorithms/dppo.py", line 105, in init
super().init(env, **kwargs)
File "/home/hmd/code/rsl_rl/rsl_rl/algorithms/ppo.py", line 90, in init
self.critic = self.critic_network(self._critic_input_size, 1, **self._critic_network_kwargs)
File "/home/hmd/code/rsl_rl/rsl_rl/modules/quantile_network.py", line 195, in init
super().init(
File "/home/hmd/code/rsl_rl/rsl_rl/modules/network.py", line 51, in init
assert len(hidden_dims) + 1 == len(activations)
AssertionError

Metadata

Metadata

Assignees

No one assigned

    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