repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/qdtrack/qdtrack_faster_rcnn_r50_fpn_4e_base.py | mmdet/configs/qdtrack/qdtrack_faster_rcnn_r50_fpn_4e_base.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import read_base
with read_base():
from .._base_.models.faster_rcnn_r50_fpn import *
from .._base_.models.faster_rcnn_r50_fpn import model
from .._base_.default_runtime import *
from mmcv.ops import RoIAlign
from mmengine.hooks import Lo... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/cascade_rcnn/cascade_rcnn_r50_fpn_1x_coco.py | mmdet/configs/cascade_rcnn/cascade_rcnn_r50_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .._base_... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/cascade_rcnn/cascade_mask_rcnn_r50_fpn_1x_coco.py | mmdet/configs/cascade_rcnn/cascade_mask_rcnn_r50_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .._base_... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/dino/dino_4scale_r50_8xb2_12e_coco.py | mmdet/configs/dino/dino_4scale_r50_8xb2_12e_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmcv.transforms import RandomChoice, RandomChoiceResize
from mmcv.transforms.loading import LoadImageFromFile
from mmengine.config import read_base
from mmengine.model.weight_init import PretrainedInit
from mmengine.optim.optimizer.optimizer_wrapper import OptimWrapp... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/dino/dino_4scale_r50_8xb2_36e_coco.py | mmdet/configs/dino/dino_4scale_r50_8xb2_36e_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import read_base
from mmengine.runner.loops import EpochBasedTrainLoop
with read_base():
from .dino_4scale_r50_8xb2_12e_coco import *
max_epochs = 36
train_cfg.update(
dict(type=EpochBasedTrainLoop, max_epochs=max_epochs, val_interval=1))
p... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/dino/dino_5scale_swin_l_8xb2_36e_coco.py | mmdet/configs/dino/dino_5scale_swin_l_8xb2_36e_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import read_base
from mmengine.runner.loops import EpochBasedTrainLoop
with read_base():
from .dino_5scale_swin_l_8xb2_12e_coco import *
max_epochs = 36
train_cfg.update(
dict(type=EpochBasedTrainLoop, max_epochs=max_epochs, val_interval=1))... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/dino/dino_4scale_r50_improved_8xb2_12e_coco.py | mmdet/configs/dino/dino_4scale_r50_improved_8xb2_12e_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import read_base
with read_base():
from .dino_4scale_r50_8xb2_12e_coco import *
# from deformable detr hyper
model.update(
dict(
backbone=dict(frozen_stages=-1),
bbox_head=dict(loss_cls=dict(loss_weight=2.0)),
positio... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/dino/dino_5scale_swin_l_8xb2_12e_coco.py | mmdet/configs/dino/dino_5scale_swin_l_8xb2_12e_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import read_base
from mmengine.model.weight_init import PretrainedInit
from mmdet.models import SwinTransformer
with read_base():
from .dino_4scale_r50_8xb2_12e_coco import *
pretrained = 'https://github.com/SwinTransformer/storage/releases/dow... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/dino/dino_4scale_r50_8xb2_24e_coco.py | mmdet/configs/dino/dino_4scale_r50_8xb2_24e_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import read_base
from mmengine.runner.loops import EpochBasedTrainLoop
with read_base():
from .dino_4scale_r50_8xb2_12e_coco import *
max_epochs = 24
train_cfg.update(
dict(type=EpochBasedTrainLoop, max_epochs=max_epochs, val_interval=1))
p... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/panoptic_fpn/panoptic_fpn_r101_fpn_ms_3x_coco.py | mmdet/configs/panoptic_fpn/panoptic_fpn_r101_fpn_ms_3x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import read_base
from mmengine.model.weight_init import PretrainedInit
with read_base():
from .panoptic_fpn_r50_fpn_ms_3x_coco import *
model.update(
dict(
backbone=dict(
depth=101,
init_cfg=dict(
... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/panoptic_fpn/panoptic_fpn_r101_fpn_1x_coco.py | mmdet/configs/panoptic_fpn/panoptic_fpn_r101_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import read_base
from mmengine.model.weight_init import PretrainedInit
with read_base():
from .panoptic_fpn_r50_fpn_1x_coco import *
model.update(
dict(
backbone=dict(
depth=101,
init_cfg=dict(
... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/panoptic_fpn/panoptic_fpn_r50_fpn_ms_3x_coco.py | mmdet/configs/panoptic_fpn/panoptic_fpn_r50_fpn_ms_3x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import read_base
from mmengine.optim.scheduler.lr_scheduler import LinearLR, MultiStepLR
with read_base():
from .panoptic_fpn_r50_fpn_1x_coco import *
from mmcv.transforms import RandomResize
from mmcv.transforms.loading import LoadImageFromFile... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/panoptic_fpn/panoptic_fpn_r50_fpn_1x_coco.py | mmdet/configs/panoptic_fpn/panoptic_fpn_r50_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .._base_... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r18_fpn_8xb8_amp_lsj_200e_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r18_fpn_8xb8_amp_lsj_200e_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_ms_poly_3x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_ms_poly_3x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_x101_64x4d_fpn_ms_poly_3x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_x101_64x4d_fpn_ms_poly_3x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from ..common... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_ms_poly_-3x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_ms_poly_-3x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .._base_... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r101_fpn_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r101_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .._base_... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_x101_32x4d_fpn_ms_poly_3x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_x101_32x4d_fpn_ms_poly_3x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from ..common... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_poly_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_poly_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .._base_... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_2x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_2x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .._base_... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_poly_1x_coco_v1.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_poly_1x_coco_v1.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_x101_64x4d_fpn_2x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_x101_64x4d_fpn_2x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_c4_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_c4_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .._base_... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_x101_64_4d_fpn_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_x101_64_4d_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r101_fpn_ms_poly_3x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r101_fpn_ms_poly_3x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from ..common... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_x101_32x4d_fpn_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_x101_32x4d_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_x101_32x8d_fpn_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_x101_32x8d_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r101_caffe_fpn_ms_poly_3x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r101_caffe_fpn_ms_poly_3x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from ..common... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_8xb8_amp_lsj_200e_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_8xb8_amp_lsj_200e_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
| python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_x101_32x8d_fpn_ms_poly_3x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_x101_32x8d_fpn_ms_poly_3x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from ..common... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_ms_poly_2x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_ms_poly_2x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_1x_wandb_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_1x_wandb_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .._base_... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_ms_poly_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_ms_poly_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_ms_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_ms_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_amp_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_amp_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r50_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .._base_... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r101_fpn_2x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r101_fpn_2x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_x101_32x4d_fpn_2x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_x101_32x4d_fpn_2x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r101_caffe_fpn_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r101_caffe_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_r101_fpn_8xb8_amp_lsj_200e_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_r101_fpn_8xb8_amp_lsj_200e_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/mask_rcnn/mask_rcnn_x101_32x8d_fpn_ms_poly_1x_coco.py | mmdet/configs/mask_rcnn/mask_rcnn_x101_32x8d_fpn_ms_poly_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .mask_rc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/retinanet/retinanet_tta.py | mmdet/configs/retinanet/retinanet_tta.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmcv.transforms.loading import LoadImageFromFile
from mmcv.transforms.processing import TestTimeAug
from mmdet.datasets.transforms.formatting import PackDetInputs
from mmdet.datasets.transforms.loading import LoadAnnotations
from mmdet.datasets.transforms.transforms... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/retinanet/retinanet_r50_fpn_1x_coco.py | mmdet/configs/retinanet/retinanet_r50_fpn_1x_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
# Please refer to https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta for more details. # noqa
# mmcv >= 2.0.1
# mmengine >= 0.8.0
from mmengine.config import read_base
with read_base():
from .._base_... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/maskformer/maskformer_r50_ms_16xb1_75e_coco.py | mmdet/configs/maskformer/maskformer_r50_ms_16xb1_75e_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmcv.transforms import RandomChoice, RandomChoiceResize
from mmengine.config import read_base
from mmengine.model.weight_init import PretrainedInit
from mmengine.optim.optimizer import OptimWrapper
from mmengine.optim.scheduler import MultiStepLR
from mmengine.runner... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/configs/maskformer/maskformer_swin_l_p4_w12_64xb1_ms_300e_coco.py | mmdet/configs/maskformer/maskformer_swin_l_p4_w12_64xb1_ms_300e_coco.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import read_base
from mmengine.optim.scheduler import LinearLR
from mmdet.models.backbones import SwinTransformer
from mmdet.models.layers import PixelDecoder
with read_base():
from .maskformer_r50_ms_16xb1_75e_coco import *
pretrained = 'https... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/apis/inference.py | mmdet/apis/inference.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import warnings
from pathlib import Path
from typing import Optional, Sequence, Union
import numpy as np
import torch
import torch.nn as nn
from mmcv.ops import RoIPool
from mmcv.transforms import Compose
from mmengine.config import Config
from mmengine.datas... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/apis/det_inferencer.py | mmdet/apis/det_inferencer.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import os.path as osp
import warnings
from typing import Dict, Iterable, List, Optional, Sequence, Tuple, Union
import mmcv
import mmengine
import numpy as np
import torch.nn as nn
from mmcv.transforms import LoadImageFromFile
from mmengine.dataset import Com... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/apis/__init__.py | mmdet/apis/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .det_inferencer import DetInferencer
from .inference import (async_inference_detector, inference_detector,
inference_mot, init_detector, init_track_model)
__all__ = [
'init_detector', 'async_inference_detector', 'inference_detector',
... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/__init__.py | mmdet/engine/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .hooks import * # noqa: F401, F403
from .optimizers import * # noqa: F401, F403
from .runner import * # noqa: F401, F403
from .schedulers import * # noqa: F401, F403
| python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/optimizers/layer_decay_optimizer_constructor.py | mmdet/engine/optimizers/layer_decay_optimizer_constructor.py | # Copyright (c) OpenMMLab. All rights reserved.
import json
from typing import List
import torch.nn as nn
from mmengine.dist import get_dist_info
from mmengine.logging import MMLogger
from mmengine.optim import DefaultOptimWrapperConstructor
from mmdet.registry import OPTIM_WRAPPER_CONSTRUCTORS
def get_layer_id_for... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/optimizers/__init__.py | mmdet/engine/optimizers/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .layer_decay_optimizer_constructor import \
LearningRateDecayOptimizerConstructor
__all__ = ['LearningRateDecayOptimizerConstructor']
| python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/hooks/mean_teacher_hook.py | mmdet/engine/hooks/mean_teacher_hook.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional
import torch.nn as nn
from mmengine.hooks import Hook
from mmengine.model import is_model_wrapper
from mmengine.runner import Runner
from mmdet.registry import HOOKS
@HOOKS.register_module()
class MeanTeacherHook(Hook):
"""Mean Teacher ... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/hooks/sync_norm_hook.py | mmdet/engine/hooks/sync_norm_hook.py | # Copyright (c) OpenMMLab. All rights reserved.
from collections import OrderedDict
from mmengine.dist import get_dist_info
from mmengine.hooks import Hook
from torch import nn
from mmdet.registry import HOOKS
from mmdet.utils import all_reduce_dict
def get_norm_states(module: nn.Module) -> OrderedDict:
"""Get ... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/hooks/memory_profiler_hook.py | mmdet/engine/hooks/memory_profiler_hook.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Sequence
from mmengine.hooks import Hook
from mmengine.runner import Runner
from mmdet.registry import HOOKS
from mmdet.structures import DetDataSample
@HOOKS.register_module()
class MemoryProfilerHook(Hook):
"""Memory profiler hook re... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/hooks/visualization_hook.py | mmdet/engine/hooks/visualization_hook.py | # Copyright (c) OpenMMLab. All rights reserved.
import os.path as osp
import warnings
from typing import Optional, Sequence
import mmcv
import numpy as np
from mmengine.fileio import get
from mmengine.hooks import Hook
from mmengine.runner import Runner
from mmengine.utils import mkdir_or_exist
from mmengine.visualiza... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/hooks/yolox_mode_switch_hook.py | mmdet/engine/hooks/yolox_mode_switch_hook.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Sequence
from mmengine.hooks import Hook
from mmengine.model import is_model_wrapper
from mmdet.registry import HOOKS
@HOOKS.register_module()
class YOLOXModeSwitchHook(Hook):
"""Switch the mode of YOLOX during training.
This hook turns off... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/hooks/num_class_check_hook.py | mmdet/engine/hooks/num_class_check_hook.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmcv.cnn import VGG
from mmengine.hooks import Hook
from mmengine.runner import Runner
from mmdet.registry import HOOKS
@HOOKS.register_module()
class NumClassCheckHook(Hook):
"""Check whether the `num_classes` in head matches the length of `classes`
in `d... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/hooks/utils.py | mmdet/engine/hooks/utils.py | # Copyright (c) OpenMMLab. All rights reserved.
def trigger_visualization_hook(cfg, args):
default_hooks = cfg.default_hooks
if 'visualization' in default_hooks:
visualization_hook = default_hooks['visualization']
# Turn on visualization
visualization_hook['draw'] = True
if args.... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/hooks/checkloss_hook.py | mmdet/engine/hooks/checkloss_hook.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional
import torch
from mmengine.hooks import Hook
from mmengine.runner import Runner
from mmdet.registry import HOOKS
@HOOKS.register_module()
class CheckInvalidLossHook(Hook):
"""Check invalid loss hook.
This hook will regularly check ... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/hooks/set_epoch_info_hook.py | mmdet/engine/hooks/set_epoch_info_hook.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.hooks import Hook
from mmengine.model.wrappers import is_model_wrapper
from mmdet.registry import HOOKS
@HOOKS.register_module()
class SetEpochInfoHook(Hook):
"""Set runner's epoch information to the model."""
def before_train_epoch(self, runner)... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/hooks/__init__.py | mmdet/engine/hooks/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .checkloss_hook import CheckInvalidLossHook
from .mean_teacher_hook import MeanTeacherHook
from .memory_profiler_hook import MemoryProfilerHook
from .num_class_check_hook import NumClassCheckHook
from .pipeline_switch_hook import PipelineSwitchHook
from .set_epoch_in... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/hooks/pipeline_switch_hook.py | mmdet/engine/hooks/pipeline_switch_hook.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmcv.transforms import Compose
from mmengine.hooks import Hook
from mmdet.registry import HOOKS
@HOOKS.register_module()
class PipelineSwitchHook(Hook):
"""Switch data pipeline at switch_epoch.
Args:
switch_epoch (int): switch pipeline at this epo... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/runner/loops.py | mmdet/engine/runner/loops.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.model import is_model_wrapper
from mmengine.runner import ValLoop
from mmdet.registry import LOOPS
@LOOPS.register_module()
class TeacherStudentValLoop(ValLoop):
"""Loop for validation of model teacher and student."""
def run(self):
"""La... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/runner/__init__.py | mmdet/engine/runner/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .loops import TeacherStudentValLoop
__all__ = ['TeacherStudentValLoop']
| python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/schedulers/quadratic_warmup.py | mmdet/engine/schedulers/quadratic_warmup.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.optim.scheduler.lr_scheduler import LRSchedulerMixin
from mmengine.optim.scheduler.momentum_scheduler import MomentumSchedulerMixin
from mmengine.optim.scheduler.param_scheduler import INF, _ParamScheduler
from torch.optim import Optimizer
from mmdet.regist... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/engine/schedulers/__init__.py | mmdet/engine/schedulers/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .quadratic_warmup import (QuadraticWarmupLR, QuadraticWarmupMomentum,
QuadraticWarmupParamScheduler)
__all__ = [
'QuadraticWarmupParamScheduler', 'QuadraticWarmupMomentum',
'QuadraticWarmupLR'
]
| python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/__init__.py | mmdet/evaluation/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .evaluator import * # noqa: F401,F403
from .functional import * # noqa: F401,F403
from .metrics import * # noqa: F401,F403
| python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/dump_proposals_metric.py | mmdet/evaluation/metrics/dump_proposals_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import os
import os.path as osp
from typing import Optional, Sequence
from mmengine.dist import is_main_process
from mmengine.evaluator import BaseMetric
from mmengine.fileio import dump
from mmengine.logging import MMLogger
from mmengine.structures import InstanceData
... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/semseg_metric.py | mmdet/evaluation/metrics/semseg_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import os.path as osp
from collections import OrderedDict
from typing import Dict, Optional, Sequence, Union
import numpy as np
import torch
from mmcv import imwrite
from mmengine.dist import is_main_process
from mmengine.evaluator import BaseMetric
from mmengine.logging... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/base_video_metric.py | mmdet/evaluation/metrics/base_video_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import os.path as osp
import pickle
import shutil
import tempfile
import warnings
from typing import Optional, Sequence
import torch
from mmengine.dist import (barrier, broadcast, broadcast_object_list,
get_dist_info, is_main_process)
from mmen... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/flickr30k_metric.py | mmdet/evaluation/metrics/flickr30k_metric.py | # Copyright (c) OpenMMLab. All rights reserved
from collections import defaultdict
from typing import Dict, List, Optional, Sequence
import numpy as np
from mmengine.evaluator import BaseMetric
from mmengine.logging import MMLogger
from mmdet.registry import METRICS
from ..functional import bbox_overlaps
class Reca... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/coco_video_metric.py | mmdet/evaluation/metrics/coco_video_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
from typing import Sequence
from mmengine.dist import broadcast_object_list, is_main_process
from mmdet.registry import METRICS
from .base_video_metric import collect_tracking_results
from .coco_metric import CocoMetric
@METRICS.register_module()
class... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/refexp_metric.py | mmdet/evaluation/metrics/refexp_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Dict, Optional, Sequence
import numpy as np
from mmengine.evaluator import BaseMetric
from mmengine.fileio import get_local_path
from mmengine.logging import MMLogger
from mmdet.datasets.api_wrappers import COCO
from mmdet.registry import METRICS
from... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/voc_metric.py | mmdet/evaluation/metrics/voc_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import warnings
from collections import OrderedDict
from typing import List, Optional, Sequence, Union
import numpy as np
from mmengine.evaluator import BaseMetric
from mmengine.logging import MMLogger
from mmdet.registry import METRICS
from ..functional imp... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/coco_panoptic_metric.py | mmdet/evaluation/metrics/coco_panoptic_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import datetime
import itertools
import os.path as osp
import tempfile
from typing import Dict, Optional, Sequence, Tuple, Union
import mmcv
import numpy as np
from mmengine.evaluator import BaseMetric
from mmengine.fileio import dump, get_local_path, load
from mmengine.... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/cityscapes_metric.py | mmdet/evaluation/metrics/cityscapes_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import os
import os.path as osp
import shutil
import tempfile
from collections import OrderedDict
from typing import Dict, Optional, Sequence
import mmcv
import numpy as np
from mmengine.dist import is_main_process
from mmengine.evaluator import BaseMetric
from mmengine.... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/lvis_metric.py | mmdet/evaluation/metrics/lvis_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import itertools
import logging
import os.path as osp
import tempfile
import warnings
from collections import OrderedDict, defaultdict
from typing import Dict, List, Optional, Sequence, Union
import numpy as np
import torch
from mmengine.dist import (all_gather_object, b... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/coco_metric.py | mmdet/evaluation/metrics/coco_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import datetime
import itertools
import os.path as osp
import tempfile
from collections import OrderedDict
from typing import Dict, List, Optional, Sequence, Union
import numpy as np
import torch
from mmengine.evaluator import BaseMetric
from mmengine.fileio import dump,... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/refseg_metric.py | mmdet/evaluation/metrics/refseg_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Sequence
import torch
from mmengine.evaluator import BaseMetric
from mmdet.registry import METRICS
@METRICS.register_module()
class RefSegMetric(BaseMetric):
"""Referring Expression Segmentation Metric."""
def __init__(self, metric: Sequenc... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/youtube_vis_metric.py | mmdet/evaluation/metrics/youtube_vis_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import os.path as osp
import tempfile
import warnings
import zipfile
from collections import OrderedDict, defaultdict
from typing import Dict, List, Optional, Sequence, Tuple, Union
import mmengine
import numpy as np
from mmengine.dist import (all_gather_object, barrier,... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/dump_odvg_results.py | mmdet/evaluation/metrics/dump_odvg_results.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Any, Optional, Sequence
from mmcv.ops import batched_nms
from mmengine.evaluator import BaseMetric
from mmengine.logging import print_log
from mmdet.registry import METRICS
try:
import jsonlines
except ImportError:
jsonlines = None
@METRICS... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/coco_caption_metric.py | mmdet/evaluation/metrics/coco_caption_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import json
import os
import tempfile
from typing import List, Optional
from mmengine.evaluator import BaseMetric
from mmengine.utils import track_iter_progress
from pycocotools.coco import COCO
from mmdet.registry import METRICS
try:
from pycocoevalcap.eval import... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/grefcoco_metric.py | mmdet/evaluation/metrics/grefcoco_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Dict, Optional, Sequence
import numpy as np
import torch
from mmengine.evaluator import BaseMetric
from mmengine.fileio import get_local_path
from mmengine.logging import MMLogger
from mmdet.datasets.api_wrappers import COCO
from mmdet.registry import... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/mot_challenge_metric.py | mmdet/evaluation/metrics/mot_challenge_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import os
import os.path as osp
import shutil
import tempfile
from collections import defaultdict
from typing import List, Optional, Union
import numpy as np
import torch
try:
import trackeval
except ImportError:
trackeval = None
from mmengine.dist import (all_g... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/coco_occluded_metric.py | mmdet/evaluation/metrics/coco_occluded_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Dict, List, Optional, Union
import mmengine
import numpy as np
from mmengine.fileio import load
from mmengine.logging import print_log
from pycocotools import mask as coco_mask
from terminaltables import AsciiTable
from mmdet.registry import METRICS
f... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/__init__.py | mmdet/evaluation/metrics/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .base_video_metric import BaseVideoMetric
from .cityscapes_metric import CityScapesMetric
from .coco_caption_metric import COCOCaptionMetric
from .coco_metric import CocoMetric
from .coco_occluded_metric import CocoOccludedSeparatedMetric
from .coco_panoptic_metric i... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/dod_metric.py | mmdet/evaluation/metrics/dod_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
from collections import defaultdict
from typing import List, Optional, Sequence
import numpy as np
from mmengine.evaluator import BaseMetric
from mmengine.fileio import get_local_path
from mmengine.logging import MMLogger
from mmdet.datasets.api_wrappers import COCO, CO... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/ov_coco_metric.py | mmdet/evaluation/metrics/ov_coco_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import itertools
import os.path as osp
import tempfile
from collections import OrderedDict
from typing import Dict
import numpy as np
from mmengine.fileio import load
from mmengine.logging import MMLogger
from terminaltables import AsciiTable
from mmdet.datasets.api_wra... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/reid_metric.py | mmdet/evaluation/metrics/reid_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Sequence, Union
import numpy as np
import torch
from mmengine.evaluator import BaseMetric
from mmdet.registry import METRICS
@METRICS.register_module()
class ReIDMetrics(BaseMetric):
"""mAP and CMC evaluation metrics for the ReID task.... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/crowdhuman_metric.py | mmdet/evaluation/metrics/crowdhuman_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import json
import os.path as osp
import tempfile
from collections import OrderedDict
from multiprocessing import Process, Queue
from typing import Dict, List, Optional, Sequence, Union
import numpy as np
from mmengine.evaluator import BaseMetric
from mmengin... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/openimages_metric.py | mmdet/evaluation/metrics/openimages_metric.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
from collections import OrderedDict
from typing import List, Optional, Sequence, Union
import numpy as np
from mmengine.evaluator import BaseMetric
from mmengine.logging import MMLogger, print_log
from mmdet.registry import METRICS
from ..functional import e... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/metrics/dump_det_results.py | mmdet/evaluation/metrics/dump_det_results.py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
from typing import Sequence
from mmengine.evaluator import DumpResults
from mmengine.evaluator.metric import _to_cpu
from mmdet.registry import METRICS
from mmdet.structures.mask import encode_mask_results
@METRICS.register_module()
class DumpDetResult... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/evaluator/__init__.py | mmdet/evaluation/evaluator/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .multi_datasets_evaluator import MultiDatasetsEvaluator
__all__ = ['MultiDatasetsEvaluator']
| python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/evaluator/multi_datasets_evaluator.py | mmdet/evaluation/evaluator/multi_datasets_evaluator.py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
from collections import OrderedDict
from typing import Sequence, Union
from mmengine.dist import (broadcast_object_list, collect_results,
is_main_process)
from mmengine.evaluator import BaseMetric, Evaluator
from mmengine.evalua... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/functional/cityscapes_utils.py | mmdet/evaluation/functional/cityscapes_utils.py | # Copyright (c) OpenMMLab. All rights reserved.
# Copyright (c) https://github.com/mcordts/cityscapesScripts
# A wrapper of `cityscapesscripts` which supports loading groundtruth
# image from `backend_args`.
import json
import os
import sys
from pathlib import Path
from typing import Optional, Union
import mmcv
import... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/functional/panoptic_utils.py | mmdet/evaluation/functional/panoptic_utils.py | # Copyright (c) OpenMMLab. All rights reserved.
# Copyright (c) 2018, Alexander Kirillov
# This file supports `backend_args` for `panopticapi`,
# the source code is copied from `panopticapi`,
# only the way to load the gt images is modified.
import multiprocessing
import os
import mmcv
import numpy as np
from mmengin... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/functional/class_names.py | mmdet/evaluation/functional/class_names.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.utils import is_str
def wider_face_classes() -> list:
"""Class names of WIDERFace."""
return ['face']
def voc_classes() -> list:
"""Class names of PASCAL VOC."""
return [
'aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'c... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | true |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/evaluation/functional/ytviseval.py | mmdet/evaluation/functional/ytviseval.py | # Copyright (c) Github URL
# Copied from
# https://github.com/youtubevos/cocoapi/blob/master/PythonAPI/pycocotools/ytvoseval.py
__author__ = 'ychfan'
import copy
import datetime
import time
from collections import defaultdict
import numpy as np
from pycocotools import mask as maskUtils
class YTVISeval:
# Interf... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.