Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucaweihs committed Mar 11, 2024
1 parent 58603a0 commit 4f62eee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions objathor/dataset/generate_holodeck_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ def __getitem__(self, idx: int) -> Dict[str, Union[int, torch.Tensor]]:
item = {
"idx": idx,
"uid": uid,
"text": ann["description"]
if ann.get("description") is not None
else ann["description_auto"],
"text": (
ann["description"]
if ann.get("description") is not None
else ann["description_auto"]
),
}

if self.image_preprocessor is not None:
Expand Down

0 comments on commit 4f62eee

Please sign in to comment.