Skip to content

Commit 2db4c97

Browse files
committed
added octo pull request to repo, octo-models/octo#61
1 parent d1868d2 commit 2db4c97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [
99
{name = "Marcel Rühle", email="[email protected]"}
1010
]
1111
description = "Uha: Minimal adaption of the dataloader proposed in Octo for loading over 25 embodiments."
12-
version = "0.2.4"
12+
version = "0.2.5"
1313
readme = "README.md"
1414
requires-python = ">=3.10"
1515
keywords = ["machine learning"]

uha/pytorch_oxe_dataloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __len__(self):
7070
]
7171
)
7272
if hasattr(self._rlds_dataset, "sample_weights"):
73-
lengths *= np.array(self._rlds_dataset.sample_weights)
73+
lengths = np.array(self._rlds_dataset.sample_weights) * lengths
7474
total_len = lengths.sum()
7575
if self._is_train:
7676
return int(0.95 * total_len)

0 commit comments

Comments
 (0)