forked from tangger/lerobot
update
This commit is contained in:
@@ -162,6 +162,9 @@ class Normalize(nn.Module):
|
|||||||
output_batch[key] = output_batch[key] * 2 - 1
|
output_batch[key] = output_batch[key] * 2 - 1
|
||||||
else:
|
else:
|
||||||
raise ValueError(mode)
|
raise ValueError(mode)
|
||||||
|
for key in batch:
|
||||||
|
if key not in output_batch:
|
||||||
|
output_batch[key] = batch[key]
|
||||||
return output_batch
|
return output_batch
|
||||||
|
|
||||||
|
|
||||||
@@ -231,4 +234,7 @@ class Unnormalize(nn.Module):
|
|||||||
output_batch[key] = output_batch[key] * (max - min) + min
|
output_batch[key] = output_batch[key] * (max - min) + min
|
||||||
else:
|
else:
|
||||||
raise ValueError(mode)
|
raise ValueError(mode)
|
||||||
|
for key in batch:
|
||||||
|
if key not in output_batch:
|
||||||
|
output_batch[key] = batch[key]
|
||||||
return output_batch
|
return output_batch
|
||||||
|
|||||||
Reference in New Issue
Block a user