Skip to content

Commit

Permalink
fix: error when Encord is the first downloaded dataset source (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
eloy-encord authored May 3, 2024
1 parent 2390b5f commit 6c45199
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tti_eval/dataset/types/encord_ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def _setup(
split_to_lr_hashes = json.loads(splits_file.read_text(encoding="utf-8"))
else:
split_to_lr_hashes = simple_project_split(self._project)
splits_file.parent.mkdir(parents=True, exist_ok=True)
splits_file.write_text(json.dumps(split_to_lr_hashes), encoding="utf-8")
self._label_rows = self._project.list_label_rows_v2(label_hashes=split_to_lr_hashes[self.split])

Expand Down

0 comments on commit 6c45199

Please sign in to comment.