Skip to content

Commit

Permalink
Support add not-promptable marker to the initial random negative labe…
Browse files Browse the repository at this point in the history
…l queue

PiperOrigin-RevId: 659745798
  • Loading branch information
Scenic Authors committed Aug 9, 2024
1 parent 934c942 commit dd783a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scenic/dataset_lib/coco_dataset/coco_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
import json
from typing import Dict, Optional

import immutabledict


ImmutableDict = immutabledict.immutabledict

OBJECTS365_LABEL_MAP_PATH = (
'scenic/dataset_lib/coco_dataset/data/objects365_class_names.txt')
Expand Down
2 changes: 2 additions & 0 deletions scenic/dataset_lib/coco_dataset/tests/test_coco_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from scenic.dataset_lib.coco_dataset import coco_utils



class CocoUtilsTest(parameterized.TestCase):
"""Test COCO utils."""

Expand All @@ -42,5 +43,6 @@ def test_get_label_map_unknown(self):
ValueError, lambda m: m.args == ('Unsupported TFDS name: unknown',)):
coco_utils.get_label_map('unknown')


if __name__ == '__main__':
absltest.main()

0 comments on commit dd783a4

Please sign in to comment.