Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/av2/datasets/tbv/splits.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# <Copyright 2022, Argo AI, LLC. Released under the MIT license.>

"""Splits for the Trust, but Verify (Argoverse 2 Map Change) dataset."""

5 changes: 3 additions & 2 deletions src/av2/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def write_img(img_path: Path, img: NDArrayByte, channel_order: str = "RGB") -> N
cv2.imwrite(str(img_path), img)


def read_json_file(fpath: Path) -> Any:
def read_json_file(fpath: Path) -> Dict[str, Any]:
"""Load dictionary from JSON file.

Args:
Expand All @@ -216,7 +216,8 @@ def read_json_file(fpath: Path) -> Any:
Deserialized Python dictionary.
"""
with open(fpath, "rb") as f:
return json.load(f)
data: Dict[str, Any] = json.load(f)
return data


def save_json_dict(
Expand Down