Add missing Pyre mode headers] [batch:11/N] [shard:17/N]

Differential Revision: D90237984

fbshipit-source-id: 526fd760f303bf31be4f743bdcd77760496de0de
This commit is contained in:
generatedunixname89002005307016
2026-01-07 05:16:41 -08:00
committed by meta-codesync[bot]
parent 5eb25fb54b
commit 7b89b8fc3f
155 changed files with 310 additions and 0 deletions

View File

@@ -1 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe

View File

@@ -1,5 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe
import contextlib
import copy
import json

View File

@@ -1,5 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe
"""
COCO evaluator that works in distributed mode.

View File

@@ -1,5 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe
"""
This evaluator is meant for regular COCO mAP evaluation, for example on the COCO val set.

View File

@@ -1,5 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe
"""
Self-contained COCO JSON re-indexing function that creates temporary files.
"""

View File

@@ -1,5 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe
"""
COCO prediction dumper for distributed training.

View File

@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe
import json
import os
from collections import defaultdict

View File

@@ -1,5 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe
"""
This evaluator is based upon COCO evaluation, but evaluates the model in a "demo" setting.
This means that the model's predictions are thresholded and evaluated as "hard" predictions.

View File

@@ -1 +1,3 @@
# flake8: noqa
# pyre-unsafe

View File

@@ -1,5 +1,7 @@
# flake8: noqa
# pyre-unsafe
"""run_youtube_vis.py
Run example:
run_youtube_vis.py --USE_PARALLEL False --METRICS HOTA --TRACKERS_TO_EVAL STEm_Seg

View File

@@ -1,4 +1,6 @@
# flake8: noqa
# pyre-unsafe
from . import datasets, metrics, utils
from .eval import Evaluator

View File

@@ -1,5 +1,7 @@
# flake8: noqa
# pyre-unsafe
import inspect
from functools import wraps
from time import perf_counter

View File

@@ -1,4 +1,6 @@
# flake8: noqa
# pyre-unsafe
from .tao_ow import TAO_OW
from .youtube_vis import YouTubeVIS

View File

@@ -1,5 +1,7 @@
# flake8: noqa
# pyre-unsafe
import csv
import io
import os

View File

@@ -1,5 +1,7 @@
# flake8: noqa
# pyre-unsafe
import itertools
import json
import os

View File

@@ -1,5 +1,7 @@
# flake8: noqa
# pyre-unsafe
# note: this file has been modified from its original version in TrackEval in
# https://github.com/JonathonLuiten/TrackEval/blob/master/trackeval/datasets/youtube_vis.py
# to support the following:

View File

@@ -1,5 +1,7 @@
# flake8: noqa
# pyre-unsafe
import os
import time
import traceback

View File

@@ -1,4 +1,6 @@
# flake8: noqa
# pyre-unsafe
from .count import Count
from .hota import HOTA

View File

@@ -1,5 +1,7 @@
# flake8: noqa
# pyre-unsafe
from abc import ABC, abstractmethod
import numpy as np

View File

@@ -1,5 +1,7 @@
# flake8: noqa
# pyre-unsafe
from .. import _timing
from ._base_metric import _BaseMetric

View File

@@ -1,5 +1,7 @@
# flake8: noqa
# pyre-unsafe
import os
import numpy as np

View File

@@ -1,5 +1,7 @@
# flake8: noqa
# pyre-unsafe
import argparse
import csv
import os

View File

@@ -1,5 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe
"""Postprocessors class to transform MDETR output according to the downstream task"""
import dataclasses

View File

@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe
import argparse
import json
import os

View File

@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe
import json
import os
import tempfile

View File

@@ -1,5 +1,7 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
from . import config, datasets, metrics, utils
from .eval import Evaluator

View File

@@ -1,6 +1,8 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
import inspect
from functools import wraps
from time import perf_counter

View File

@@ -1,6 +1,8 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
"""Config."""
import argparse
import os

View File

@@ -1,5 +1,7 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
"""Datasets."""
from .coco import COCO
from .tao import TAO

View File

@@ -1,6 +1,8 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
import csv
import io
import os

View File

@@ -1,6 +1,8 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
"""COCO Dataset."""
import copy
import itertools

View File

@@ -1,6 +1,8 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
"""TAO Dataset."""
import copy
import itertools

View File

@@ -1,6 +1,8 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
import copy
import os
import pickle

View File

@@ -1,4 +1,6 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
from .teta import TETA

View File

@@ -1,6 +1,8 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
from abc import ABC, abstractmethod
import numpy as np

View File

@@ -1,6 +1,8 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
"""Track Every Thing Accuracy metric."""
import numpy as np

View File

@@ -1,6 +1,8 @@
# fmt: off
# flake8: noqa
# pyre-unsafe
import csv
import os
from collections import OrderedDict

View File

@@ -1,6 +1,8 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
# pyre-unsafe
import copy
import json
import logging

View File

@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
# pyre-unsafe
import copy
import gc
import logging