Merge remote-tracking branch 'Cadene/user/rcadene/2024_03_31_remove_torchrl' into refactor_act_remove_torchrl
这个提交包含在:
10
lerobot/common/policies/utils.py
普通文件
10
lerobot/common/policies/utils.py
普通文件
@ -0,0 +1,10 @@
|
|||||||
|
def populate_queues(queues, batch):
|
||||||
|
for key in batch:
|
||||||
|
if len(queues[key]) != queues[key].maxlen:
|
||||||
|
# initialize by copying the first observation several times until the queue is full
|
||||||
|
while len(queues[key]) != queues[key].maxlen:
|
||||||
|
queues[key].append(batch[key])
|
||||||
|
else:
|
||||||
|
# add latest observation to the queue
|
||||||
|
queues[key].append(batch[key])
|
||||||
|
return queues
|
||||||
在新工单中引用
屏蔽一个用户