forked from tangger/lerobot
Modified crop_dataset_roi interface to automatically write the cropped parameters to a json file in the meta of the dataset
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com>
This commit is contained in:
committed by
AdilZouitine
parent
2f34d84298
commit
2aca830a09
@@ -181,10 +181,10 @@ class ReplayBuffer:
|
||||
state = {key: tensor.to(self.storage_device) for key, tensor in state.items()}
|
||||
next_state = {key: tensor.to(self.storage_device) for key, tensor in next_state.items()}
|
||||
action = action.to(self.storage_device)
|
||||
if complementary_info is not None:
|
||||
complementary_info = {
|
||||
key: tensor.to(self.storage_device) for key, tensor in complementary_info.items()
|
||||
}
|
||||
# if complementary_info is not None:
|
||||
# complementary_info = {
|
||||
# key: tensor.to(self.storage_device) for key, tensor in complementary_info.items()
|
||||
# }
|
||||
|
||||
if len(self.memory) < self.capacity:
|
||||
self.memory.append(None)
|
||||
|
||||
Reference in New Issue
Block a user