Skip to content

Actions are denoised twice in collect_rollouts of dsrl_sac #6

Description

@fedeceola

Hi @ajwagen, I am opening this issue because I believe that there is a bug in the collection of rollouts for dsrl_sac.

The noise is denoised twice by diffusion policy. The first denoising happens here:

dsrl/utils.py

Line 171 in 8d21b9c

action = base_policy(torch.tensor(obs, device=cfg.device, dtype=torch.float32), noise)

The second happens here:

diffused_actions = self.base_policy(self.obs, actions)

When the step function is called here:

dsrl/utils.py

Line 172 in 8d21b9c

next_obs, reward, done, info = env.step(action)

This issue is not affecting dsrl_na.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions