Skip to content

Commit 40f8cff

Browse files
Alexander Kirillovfacebook-github-bot
authored andcommitted
register annotation file with points internally
Summary: make point supervision compatible with internal dataset file system. Differential Revision: D29629927 fbshipit-source-id: 5646645d118ac82816269b7a16d2328efccaf183
1 parent 5b1d1a8 commit 40f8cff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

projects/PointSup/point_sup/register_point_annotations.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,8 @@ def register_all_coco_train_points(root):
6262
)
6363

6464

65-
_root = os.getenv("DETECTRON2_DATASETS", "datasets")
66-
register_all_coco_train_points(_root)
65+
# True for open source;
66+
# Internally at fb, we register them elsewhere
67+
if __name__.endswith(".register_point_annotations"):
68+
_root = os.getenv("DETECTRON2_DATASETS", "datasets")
69+
register_all_coco_train_points(_root)

0 commit comments

Comments
 (0)