forked from tangger/lerobot
fix vqbet
This commit is contained in:
@@ -298,7 +298,7 @@ class VQBeTModel(nn.Module):
|
|||||||
# bin prediction head / offset prediction head part of VQ-BeT
|
# bin prediction head / offset prediction head part of VQ-BeT
|
||||||
self.action_head = VQBeTHead(config)
|
self.action_head = VQBeTHead(config)
|
||||||
|
|
||||||
num_tokens = self.config.n_action_pred_token + self.config.action_chunk_size - 1
|
num_tokens = self.config.n_action_pred_token
|
||||||
self.register_buffer(
|
self.register_buffer(
|
||||||
"select_target_actions_indices",
|
"select_target_actions_indices",
|
||||||
torch.row_stack([torch.arange(i, i + self.config.action_chunk_size) for i in range(num_tokens)]),
|
torch.row_stack([torch.arange(i, i + self.config.action_chunk_size) for i in range(num_tokens)]),
|
||||||
|
|||||||
Reference in New Issue
Block a user