Skip to content

Commit 9a5cfe7

Browse files
committed
Merge branch 'diffusion-policy' of https://github.com/DorsaRoh/diffusers into diffusion-policy
2 parents a7b8ef2 + 2bad2fc commit 9a5cfe7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/reinforcement_learning/diffusion_policy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ def __init__(self, state_dim=5, device="cpu"):
9595
)
9696

9797
# load pre-trained weights from HuggingFace
98-
checkpoint = torch.load(hf_hub_download("dorsar/diffusion_policy", "push_tblock.pt"), weights_only=True, map_location=device)
98+
checkpoint = torch.load(hf_hub_download("dorsar/diffusion_policy", "push_tblock.pt"), map_location=device)
99+
99100
self.model.load_state_dict(checkpoint['model_state_dict'])
100101
self.obs_encoder.load_state_dict(checkpoint['encoder_state_dict'])
101102
self.obs_projection.load_state_dict(checkpoint['projection_state_dict'])

0 commit comments

Comments
 (0)