You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your amazing work. I'm trying your code on Hopper env. However, I get an error from the handle_batch_input function:
Traceback (most recent call last):
File "xxxx, line 62, in <module>
action = ctrl.command(obs)
File "xxx/pytorch_mppi/pytorch_mppi/mppi.py", line 194, in command
cost_total = self._compute_total_cost_batch()
File "xxx/pytorch_mppi/pytorch_mppi/mppi.py", line 280, in _compute_total_cost_batch
self.cost_total, self.states, self.actions = self._compute_rollout_costs(self.perturbed_action)
File "xxx/pytorch_mppi/pytorch_mppi/mppi.py", line 238, in _compute_rollout_costs
c = self._running_cost(state, u)
File "xxx/pytorch_mppi/pytorch_mppi/mppi.py", line 47, in wrapper
ret = ret.view(*batch_dims)
ValueError: Type must be a sub-type of ndarray type
I'm wondering what this function is used for and whether you know where this error comes from.
Thank you so much for your help!
The text was updated successfully, but these errors were encountered:
Hi, what is the input obs that you're feeding into ctrl.command? It should be a torch.tensor or convertible type (such as list, or numpy ndarray) of size nx or K x nx, where nx is the state dimension, and K is some batch dimension.
Hi there,
Thank you for your amazing work. I'm trying your code on Hopper env. However, I get an error from the handle_batch_input function:
I'm wondering what this function is used for and whether you know where this error comes from.
Thank you so much for your help!
The text was updated successfully, but these errors were encountered: