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/models/necks/yolo_neck.py
mmdet/models/necks/yolo_neck.py
# Copyright (c) OpenMMLab. All rights reserved. # Copyright (c) 2019 Western Digital Corporation or its affiliates. from typing import List, Tuple import torch import torch.nn.functional as F from mmcv.cnn import ConvModule from mmengine.model import BaseModule from torch import Tensor from mmdet.registry import MODE...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/rfp.py
mmdet/models/necks/rfp.py
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn import torch.nn.functional as F from mmengine.model import BaseModule, ModuleList, constant_init, xavier_init from mmdet.registry import MODELS from .fpn import FPN class ASPP(BaseModule): """ASPP (Atrous Spatial Pyramid Pooling) ...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/bfp.py
mmdet/models/necks/bfp.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import Tuple import torch.nn.functional as F from mmcv.cnn import ConvModule from mmcv.cnn.bricks import NonLocal2d from mmengine.model import BaseModule from torch import Tensor from mmdet.registry import MODELS from mmdet.utils import OptConfigType, OptMul...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/ssh.py
mmdet/models/necks/ssh.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import List, Tuple import torch import torch.nn.functional as F from mmcv.cnn import ConvModule from mmengine.model import BaseModule from mmdet.registry import MODELS from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig class SSHContextModule...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/dilated_encoder.py
mmdet/models/necks/dilated_encoder.py
# Copyright (c) OpenMMLab. All rights reserved. import torch.nn as nn from mmcv.cnn import ConvModule, is_norm from mmengine.model import caffe2_xavier_init, constant_init, normal_init from torch.nn import BatchNorm2d from mmdet.registry import MODELS class Bottleneck(nn.Module): """Bottleneck block for DilatedE...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/ssd_neck.py
mmdet/models/necks/ssd_neck.py
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn from mmcv.cnn import ConvModule, DepthwiseSeparableConvModule from mmengine.model import BaseModule from mmdet.registry import MODELS @MODELS.register_module() class SSDNeck(BaseModule): """Extra layers of SSD backbone to generate...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/fpg.py
mmdet/models/necks/fpg.py
# Copyright (c) OpenMMLab. All rights reserved. import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule from mmengine.model import BaseModule from mmdet.registry import MODELS class Transition(BaseModule): """Base class for transition. Args: in_channels (int): Number of...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/dyhead.py
mmdet/models/necks/dyhead.py
# Copyright (c) OpenMMLab. All rights reserved. import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import build_activation_layer, build_norm_layer from mmcv.ops.modulated_deform_conv import ModulatedDeformConv2d from mmengine.model import BaseModule, constant_init, normal_init from mmdet.registry impo...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/hrfpn.py
mmdet/models/necks/hrfpn.py
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule from mmengine.model import BaseModule from torch.utils.checkpoint import checkpoint from mmdet.registry import MODELS @MODELS.register_module() class HRFPN(BaseModule): ...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/fpn_dropblock.py
mmdet/models/necks/fpn_dropblock.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import Optional, Tuple import torch.nn.functional as F from torch import Tensor from mmdet.registry import MODELS from .fpn import FPN @MODELS.register_module() class FPN_DropBlock(FPN): def __init__(self, *args, plug...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/__init__.py
mmdet/models/necks/__init__.py
# Copyright (c) OpenMMLab. All rights reserved. from .bfp import BFP from .channel_mapper import ChannelMapper from .cspnext_pafpn import CSPNeXtPAFPN from .ct_resnet_neck import CTResNetNeck from .dilated_encoder import DilatedEncoder from .dyhead import DyHead from .fpg import FPG from .fpn import FPN from .fpn_caraf...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/ct_resnet_neck.py
mmdet/models/necks/ct_resnet_neck.py
# Copyright (c) OpenMMLab. All rights reserved. import math from typing import Sequence, Tuple import torch import torch.nn as nn from mmcv.cnn import ConvModule from mmengine.model import BaseModule from mmdet.registry import MODELS from mmdet.utils import OptMultiConfig @MODELS.register_module() class CTResNetNec...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/fpn.py
mmdet/models/necks/fpn.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import List, Tuple, Union import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule from mmengine.model import BaseModule from torch import Tensor from mmdet.registry import MODELS from mmdet.utils import ConfigType, MultiConfig, ...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/nas_fpn.py
mmdet/models/necks/nas_fpn.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import List, Tuple import torch.nn as nn from mmcv.cnn import ConvModule from mmcv.ops.merge_cells import GlobalPoolingCell, SumCell from mmengine.model import BaseModule, ModuleList from torch import Tensor from mmdet.registry import MODELS from mmdet.utils...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/yolox_pafpn.py
mmdet/models/necks/yolox_pafpn.py
# Copyright (c) OpenMMLab. All rights reserved. import math import torch import torch.nn as nn from mmcv.cnn import ConvModule, DepthwiseSeparableConvModule from mmengine.model import BaseModule from mmdet.registry import MODELS from ..layers import CSPLayer @MODELS.register_module() class YOLOXPAFPN(BaseModule): ...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/nasfcos_fpn.py
mmdet/models/necks/nasfcos_fpn.py
# Copyright (c) OpenMMLab. All rights reserved. import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule from mmcv.ops.merge_cells import ConcatCell from mmengine.model import BaseModule, caffe2_xavier_init from mmdet.registry import MODELS @MODELS.register_module() class NASFCOS_FPN(Bas...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/channel_mapper.py
mmdet/models/necks/channel_mapper.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import List, Tuple, Union import torch.nn as nn from mmcv.cnn import ConvModule from mmengine.model import BaseModule from torch import Tensor from mmdet.registry import MODELS from mmdet.utils import OptConfigType, OptMultiConfig @MODELS.register_module()...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/necks/pafpn.py
mmdet/models/necks/pafpn.py
# Copyright (c) OpenMMLab. All rights reserved. import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule from mmdet.registry import MODELS from .fpn import FPN @MODELS.register_module() class PAFPN(FPN): """Path Aggregation Network for Instance Segmentation. This is an implement...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/seg_heads/base_semantic_head.py
mmdet/models/seg_heads/base_semantic_head.py
# Copyright (c) OpenMMLab. All rights reserved. from abc import ABCMeta, abstractmethod from typing import Dict, List, Tuple, Union import torch.nn.functional as F from mmengine.model import BaseModule from torch import Tensor from mmdet.registry import MODELS from mmdet.structures import SampleList from mmdet.utils ...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/seg_heads/panoptic_fpn_head.py
mmdet/models/seg_heads/panoptic_fpn_head.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import Dict, Tuple, Union import torch import torch.nn as nn import torch.nn.functional as F from mmengine.model import ModuleList from torch import Tensor from mmdet.registry import MODELS from mmdet.structures import SampleList from mmdet.utils import Conf...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/seg_heads/__init__.py
mmdet/models/seg_heads/__init__.py
# Copyright (c) OpenMMLab. All rights reserved. from .panoptic_fpn_head import PanopticFPNHead # noqa: F401,F403 from .panoptic_fusion_heads 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/models/seg_heads/panoptic_fusion_heads/base_panoptic_fusion_head.py
mmdet/models/seg_heads/panoptic_fusion_heads/base_panoptic_fusion_head.py
# Copyright (c) OpenMMLab. All rights reserved. from abc import ABCMeta, abstractmethod from mmengine.model import BaseModule from mmdet.registry import MODELS from mmdet.utils import OptConfigType, OptMultiConfig @MODELS.register_module() class BasePanopticFusionHead(BaseModule, metaclass=ABCMeta): """Base cla...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/seg_heads/panoptic_fusion_heads/__init__.py
mmdet/models/seg_heads/panoptic_fusion_heads/__init__.py
# Copyright (c) OpenMMLab. All rights reserved. from .base_panoptic_fusion_head import \ BasePanopticFusionHead # noqa: F401,F403 from .heuristic_fusion_head import HeuristicFusionHead # noqa: F401,F403 from .maskformer_fusion_head import MaskFormerFusionHead # 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/models/seg_heads/panoptic_fusion_heads/heuristic_fusion_head.py
mmdet/models/seg_heads/panoptic_fusion_heads/heuristic_fusion_head.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import List import torch from mmengine.structures import InstanceData, PixelData from torch import Tensor from mmdet.evaluation.functional import INSTANCE_OFFSET from mmdet.registry import MODELS from mmdet.utils import InstanceList, OptConfigType, OptMultiC...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/seg_heads/panoptic_fusion_heads/maskformer_fusion_head.py
mmdet/models/seg_heads/panoptic_fusion_heads/maskformer_fusion_head.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import List import torch import torch.nn.functional as F from mmengine.structures import InstanceData, PixelData from torch import Tensor from mmdet.evaluation.functional import INSTANCE_OFFSET from mmdet.registry import MODELS from mmdet.structures import S...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/data_preprocessors/data_preprocessor.py
mmdet/models/data_preprocessors/data_preprocessor.py
# Copyright (c) OpenMMLab. All rights reserved. import random from numbers import Number from typing import List, Optional, Sequence, Tuple, Union import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from mmengine.dist import barrier, broadcast, get_dist_info from mmengine.logging impo...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/data_preprocessors/reid_data_preprocessor.py
mmdet/models/data_preprocessors/reid_data_preprocessor.py
# Copyright (c) OpenMMLab. All rights reserved. import math from numbers import Number from typing import Optional, Sequence import torch import torch.nn.functional as F from mmengine.model import BaseDataPreprocessor, stack_batch from mmdet.registry import MODELS try: import mmpretrain from mmpretrain.model...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/data_preprocessors/__init__.py
mmdet/models/data_preprocessors/__init__.py
# Copyright (c) OpenMMLab. All rights reserved. from .data_preprocessor import (BatchFixedSizePad, BatchResize, BatchSyncRandomResize, BoxInstDataPreprocessor, DetDataPreprocessor, MultiBranchDataPreprocessor) from .reid_dat...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/data_preprocessors/track_data_preprocessor.py
mmdet/models/data_preprocessors/track_data_preprocessor.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import Dict, List, Optional, Sequence, Union import numpy as np import torch import torch.nn.functional as F from mmengine.model.utils import stack_batch from mmdet.models.utils.misc import samplelist_boxtype2tensor from mmdet.registry import MODELS from mmd...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/reid/linear_reid_head.py
mmdet/models/reid/linear_reid_head.py
# Copyright (c) OpenMMLab. All rights reserved. import warnings from typing import List, Optional, Tuple, Union import torch import torch.nn as nn try: import mmpretrain from mmpretrain.evaluation.metrics import Accuracy except ImportError: mmpretrain = None from mmengine.model import BaseModule from mm...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/reid/gap.py
mmdet/models/reid/gap.py
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn from mmengine.model import BaseModule from mmdet.registry import MODELS @MODELS.register_module() class GlobalAveragePooling(BaseModule): """Global Average Pooling neck. Note that we use `view` to remove extra channel after 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/models/reid/base_reid.py
mmdet/models/reid/base_reid.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import List, Optional import torch try: import mmpretrain from mmpretrain.models.classifiers import ImageClassifier except ImportError: mmpretrain = None ImageClassifier = object from mmdet.registry import MODELS from mmdet.structures 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/models/reid/__init__.py
mmdet/models/reid/__init__.py
# Copyright (c) OpenMMLab. All rights reserved. from .base_reid import BaseReID from .fc_module import FcModule from .gap import GlobalAveragePooling from .linear_reid_head import LinearReIDHead __all__ = ['BaseReID', 'GlobalAveragePooling', 'LinearReIDHead', 'FcModule']
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/reid/fc_module.py
mmdet/models/reid/fc_module.py
# Copyright (c) OpenMMLab. All rights reserved. import torch.nn as nn from mmcv.cnn import build_activation_layer, build_norm_layer from mmengine.model import BaseModule from mmdet.registry import MODELS @MODELS.register_module() class FcModule(BaseModule): """Fully-connected layer module. Args: 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/utils/compat_config.py
mmdet/utils/compat_config.py
# Copyright (c) OpenMMLab. All rights reserved. import copy import warnings from mmengine.config import ConfigDict def compat_cfg(cfg): """This function would modify some filed to keep the compatibility of config. For example, it will move some args which will be deprecated to the correct fields. ...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/large_image.py
mmdet/utils/large_image.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import Sequence, Tuple import torch from mmcv.ops import batched_nms from mmengine.structures import InstanceData from mmdet.structures import DetDataSample, SampleList def shift_rbboxes(bboxes: torch.Tensor, offset: Sequence[int]): """Shift rotated bb...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/memory.py
mmdet/utils/memory.py
# Copyright (c) OpenMMLab. All rights reserved. import warnings from collections import abc from contextlib import contextmanager from functools import wraps import torch from mmengine.logging import MMLogger def cast_tensor_type(inputs, src_type=None, dst_type=None): """Recursively convert Tensor in inputs 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/utils/typing_utils.py
mmdet/utils/typing_utils.py
# Copyright (c) OpenMMLab. All rights reserved. """Collecting some commonly used type hint in mmdetection.""" from typing import List, Optional, Sequence, Tuple, Union from mmengine.config import ConfigDict from mmengine.structures import InstanceData, PixelData # TODO: Need to avoid circular import with assigner and...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/contextmanagers.py
mmdet/utils/contextmanagers.py
# Copyright (c) OpenMMLab. All rights reserved. import asyncio import contextlib import logging import os import time from typing import List import torch logger = logging.getLogger(__name__) DEBUG_COMPLETED_TIME = bool(os.environ.get('DEBUG_COMPLETED_TIME', False)) @contextlib.asynccontextmanager async def comple...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/replace_cfg_vals.py
mmdet/utils/replace_cfg_vals.py
# Copyright (c) OpenMMLab. All rights reserved. import re from mmengine.config import Config def replace_cfg_vals(ori_cfg): """Replace the string "${key}" with the corresponding value. Replace the "${key}" with the value of ori_cfg.key in the config. And support replacing the chained ${key}. Such as, 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/utils/logger.py
mmdet/utils/logger.py
# Copyright (c) OpenMMLab. All rights reserved. import inspect from mmengine.logging import print_log def get_caller_name(): """Get name of caller method.""" # this_func_frame = inspect.stack()[0][0] # i.e., get_caller_name # callee_frame = inspect.stack()[1][0] # e.g., log_img_scale caller_frame =...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/setup_env.py
mmdet/utils/setup_env.py
# Copyright (c) OpenMMLab. All rights reserved. import datetime import logging import os import platform import warnings import cv2 import torch.multiprocessing as mp from mmengine import DefaultScope from mmengine.logging import print_log from mmengine.utils import digit_version def setup_cache_size_limit_of_dynamo...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/collect_env.py
mmdet/utils/collect_env.py
# Copyright (c) OpenMMLab. All rights reserved. from mmengine.utils import get_git_hash from mmengine.utils.dl_utils import collect_env as collect_base_env import mmdet def collect_env(): """Collect the information of the running environments.""" env_info = collect_base_env() env_info['MMDetection'] = mm...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/mot_error_visualize.py
mmdet/utils/mot_error_visualize.py
# Copyright (c) OpenMMLab. All rights reserved. import os.path as osp from typing import Union try: import seaborn as sns except ImportError: sns = None import cv2 import matplotlib.pyplot as plt import mmcv import numpy as np from matplotlib.patches import Rectangle from mmengine.utils import mkdir_or_exist ...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/dist_utils.py
mmdet/utils/dist_utils.py
# Copyright (c) OpenMMLab. All rights reserved. import functools import pickle import warnings from collections import OrderedDict import numpy as np import torch import torch.distributed as dist from mmengine.dist import get_dist_info from torch._utils import (_flatten_dense_tensors, _take_tensors, ...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/split_batch.py
mmdet/utils/split_batch.py
# Copyright (c) OpenMMLab. All rights reserved. import torch def split_batch(img, img_metas, kwargs): """Split data_batch by tags. Code is modified from <https://github.com/microsoft/SoftTeacher/blob/main/ssod/utils/structure_utils.py> # noqa: E501 Args: img (Tensor): of shape (N, C, H, W) 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/utils/misc.py
mmdet/utils/misc.py
# Copyright (c) OpenMMLab. All rights reserved. import glob import os import os.path as osp import urllib import warnings from typing import Union import torch from mmengine.config import Config, ConfigDict from mmengine.logging import print_log from mmengine.utils import scandir IMG_EXTENSIONS = ('.jpg', '.jpeg', '....
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/benchmark.py
mmdet/utils/benchmark.py
# Copyright (c) OpenMMLab. All rights reserved. import copy import time from functools import partial from typing import List, Optional, Union import numpy as np import torch import torch.nn as nn from mmcv.cnn import fuse_conv_bn # TODO need update # from mmcv.runner import wrap_fp16_model from mmengine import MMLogg...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/__init__.py
mmdet/utils/__init__.py
# Copyright (c) OpenMMLab. All rights reserved. from .collect_env import collect_env from .compat_config import compat_cfg from .dist_utils import (all_reduce_dict, allreduce_grads, reduce_mean, sync_random_seed) from .logger import get_caller_name, log_img_scale from .memory import AvoidCUDAOO...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/util_random.py
mmdet/utils/util_random.py
# Copyright (c) OpenMMLab. All rights reserved. """Helpers for random number generators.""" import numpy as np def ensure_rng(rng=None): """Coerces input into a random number generator. If the input is None, then a global random state is returned. If the input is a numeric value, then that is used as a ...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/profiling.py
mmdet/utils/profiling.py
# Copyright (c) OpenMMLab. All rights reserved. import contextlib import sys import time import torch if sys.version_info >= (3, 7): @contextlib.contextmanager def profile_time(trace_name, name, enabled=True, stream=None, end...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/utils/util_mixins.py
mmdet/utils/util_mixins.py
# Copyright (c) OpenMMLab. All rights reserved. """This module defines the :class:`NiceRepr` mixin class, which defines a ``__repr__`` and ``__str__`` method that only depend on a custom ``__nice__`` method, which you must define. This means you only have to overload one function instead of two. Furthermore, if the ob...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/testing/_fast_stop_training_hook.py
mmdet/testing/_fast_stop_training_hook.py
# Copyright (c) OpenMMLab. All rights reserved. from mmengine.hooks import Hook from mmdet.registry import HOOKS @HOOKS.register_module() class FastStopTrainingHook(Hook): """Set runner's epoch information to the model.""" def __init__(self, by_epoch, save_ckpt=False, stop_iter_or_epoch=5): self.by_...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/testing/__init__.py
mmdet/testing/__init__.py
# Copyright (c) OpenMMLab. All rights reserved. from ._fast_stop_training_hook import FastStopTrainingHook # noqa: F401,F403 from ._utils import (demo_mm_inputs, demo_mm_proposals, demo_mm_sampling_results, demo_track_inputs, get_detector_cfg, get_roi_head_cfg, random_boxes, ...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false
open-mmlab/mmdetection
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/testing/_utils.py
mmdet/testing/_utils.py
# Copyright (c) OpenMMLab. All rights reserved. import copy from os.path import dirname, exists, join import numpy as np import torch from mmengine.config import Config from mmengine.dataset import pseudo_collate from mmengine.structures import InstanceData, PixelData from mmdet.utils.util_random import ensure_rng fr...
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/_base_/default_runtime.py
mmdet/configs/_base_/default_runtime.py
# Copyright (c) OpenMMLab. All rights reserved. from mmengine.hooks import (CheckpointHook, DistSamplerSeedHook, IterTimerHook, LoggerHook, ParamSchedulerHook) from mmengine.runner import LogProcessor from mmengine.visualization import LocalVisBackend from mmdet.engine.hooks import DetVisua...
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/_base_/schedules/schedule_2x.py
mmdet/configs/_base_/schedules/schedule_2x.py
# Copyright (c) OpenMMLab. All rights reserved. from mmengine.optim.optimizer.optimizer_wrapper import OptimWrapper from mmengine.optim.scheduler.lr_scheduler import LinearLR, MultiStepLR from mmengine.runner.loops import EpochBasedTrainLoop, TestLoop, ValLoop from torch.optim.sgd import SGD # training schedule for 1x...
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/_base_/schedules/schedule_1x.py
mmdet/configs/_base_/schedules/schedule_1x.py
# Copyright (c) OpenMMLab. All rights reserved. from mmengine.optim.optimizer.optimizer_wrapper import OptimWrapper from mmengine.optim.scheduler.lr_scheduler import LinearLR, MultiStepLR from mmengine.runner.loops import EpochBasedTrainLoop, TestLoop, ValLoop from torch.optim.sgd import SGD # training schedule for 1x...
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/_base_/datasets/coco_panoptic.py
mmdet/configs/_base_/datasets/coco_panoptic.py
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.transforms.loading import LoadImageFromFile from mmengine.dataset.sampler import DefaultSampler from mmdet.datasets.coco_panoptic import CocoPanopticDataset from mmdet.datasets.samplers.batch_sampler import AspectRatioBatchSampler from mmdet.datasets.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/_base_/datasets/mot_challenge.py
mmdet/configs/_base_/datasets/mot_challenge.py
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.transforms import (LoadImageFromFile, RandomResize, TransformBroadcaster) from mmdet.datasets import MOTChallengeDataset from mmdet.datasets.samplers import TrackImgSampler from mmdet.datasets.transforms import (LoadTrackAnnotations...
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/_base_/datasets/coco_instance_semantic.py
mmdet/configs/_base_/datasets/coco_instance_semantic.py
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.transforms.loading import LoadImageFromFile from mmengine.dataset.sampler import DefaultSampler from mmdet.datasets.coco import CocoDataset from mmdet.datasets.samplers.batch_sampler import AspectRatioBatchSampler from mmdet.datasets.transforms.formatting impor...
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/_base_/datasets/coco_detection.py
mmdet/configs/_base_/datasets/coco_detection.py
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.transforms import LoadImageFromFile from mmengine.dataset.sampler import DefaultSampler from mmdet.datasets import AspectRatioBatchSampler, CocoDataset from mmdet.datasets.transforms import (LoadAnnotations, PackDetInputs, ...
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/_base_/datasets/coco_instance.py
mmdet/configs/_base_/datasets/coco_instance.py
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.transforms.loading import LoadImageFromFile from mmengine.dataset.sampler import DefaultSampler from mmdet.datasets.coco import CocoDataset from mmdet.datasets.samplers.batch_sampler import AspectRatioBatchSampler from mmdet.datasets.transforms.formatting impor...
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/_base_/models/cascade_rcnn_r50_fpn.py
mmdet/configs/_base_/models/cascade_rcnn_r50_fpn.py
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.ops import RoIAlign, nms from torch.nn import BatchNorm2d from mmdet.models.backbones.resnet import ResNet from mmdet.models.data_preprocessors.data_preprocessor import \ DetDataPreprocessor from mmdet.models.dense_heads.rpn_head import RPNHead from mmdet.m...
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/_base_/models/cascade_mask_rcnn_r50_fpn.py
mmdet/configs/_base_/models/cascade_mask_rcnn_r50_fpn.py
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.ops import RoIAlign, nms from torch.nn import BatchNorm2d from mmdet.models.backbones.resnet import ResNet from mmdet.models.data_preprocessors.data_preprocessor import \ DetDataPreprocessor from mmdet.models.dense_heads.rpn_head import RPNHead from mmdet.m...
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/_base_/models/mask_rcnn_r50_caffe_c4.py
mmdet/configs/_base_/models/mask_rcnn_r50_caffe_c4.py
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.ops import RoIAlign, nms from mmengine.model.weight_init import PretrainedInit from torch.nn import BatchNorm2d from mmdet.models.backbones.resnet import ResNet from mmdet.models.data_preprocessors.data_preprocessor import \ DetDataPreprocessor from mmdet.m...
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/_base_/models/mask_rcnn_r50_fpn.py
mmdet/configs/_base_/models/mask_rcnn_r50_fpn.py
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.ops import RoIAlign, nms from mmengine.model.weight_init import PretrainedInit from torch.nn import BatchNorm2d from mmdet.models.backbones.resnet import ResNet from mmdet.models.data_preprocessors.data_preprocessor import \ DetDataPreprocessor from mmdet.m...
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/_base_/models/retinanet_r50_fpn.py
mmdet/configs/_base_/models/retinanet_r50_fpn.py
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.ops import nms from torch.nn import BatchNorm2d from mmdet.models import (FPN, DetDataPreprocessor, FocalLoss, L1Loss, ResNet, RetinaHead, RetinaNet) from mmdet.models.task_modules import (AnchorGenerator, DeltaXYWHBBoxCoder, ...
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/_base_/models/faster_rcnn_r50_fpn.py
mmdet/configs/_base_/models/faster_rcnn_r50_fpn.py
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.ops import RoIAlign, nms from torch.nn import BatchNorm2d from mmdet.models.backbones.resnet import ResNet from mmdet.models.data_preprocessors.data_preprocessor import \ DetDataPreprocessor from mmdet.models.dense_heads.rpn_head import RPNHead from mmdet.m...
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/rtmdet/rtmdet_ins_m_8xb32_300e_coco.py
mmdet/configs/rtmdet/rtmdet_ins_m_8xb32_300e_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 .rtmdet_...
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/rtmdet/rtmdet_s_8xb32_300e_coco.py
mmdet/configs/rtmdet/rtmdet_s_8xb32_300e_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 .rtmdet_...
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/rtmdet/rtmdet_x_8xb32_300e_coco.py
mmdet/configs/rtmdet/rtmdet_x_8xb32_300e_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 .rtmdet_...
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/rtmdet/rtmdet_tiny_8xb32_300e_coco.py
mmdet/configs/rtmdet/rtmdet_tiny_8xb32_300e_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 .rtmdet_...
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/rtmdet/rtmdet_ins_tiny_8xb32_300e_coco.py
mmdet/configs/rtmdet/rtmdet_ins_tiny_8xb32_300e_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 .rtmdet_...
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/rtmdet/rtmdet_ins_s_8xb32_300e_coco.py
mmdet/configs/rtmdet/rtmdet_ins_s_8xb32_300e_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 .rtmdet_...
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/rtmdet/rtmdet_m_8xb32_300e_coco.py
mmdet/configs/rtmdet/rtmdet_m_8xb32_300e_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 .rtmdet_...
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/rtmdet/rtmdet_ins_l_8xb32_300e_coco.py
mmdet/configs/rtmdet/rtmdet_ins_l_8xb32_300e_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 .rtmdet_...
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/rtmdet/rtmdet_l_8xb32_300e_coco.py
mmdet/configs/rtmdet/rtmdet_l_8xb32_300e_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/rtmdet/rtmdet_ins_x_8xb16_300e_coco.py
mmdet/configs/rtmdet/rtmdet_ins_x_8xb16_300e_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 .rtmdet_...
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/rtmdet/rtmdet_tta.py
mmdet/configs/rtmdet/rtmdet_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/deformable_detr/deformable_detr_refine_twostage_r50_16xb2_50e_coco.py
mmdet/configs/deformable_detr/deformable_detr_refine_twostage_r50_16xb2_50e_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 .deforma...
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/deformable_detr/deformable_detr_refine_r50_16xb2_50e_coco.py
mmdet/configs/deformable_detr/deformable_detr_refine_r50_16xb2_50e_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 .deforma...
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/deformable_detr/deformable_detr_r50_16xb2_50e_coco.py
mmdet/configs/deformable_detr/deformable_detr_r50_16xb2_50e_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/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py
mmdet/configs/faster_rcnn/faster_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/common/ms_3x_coco.py
mmdet/configs/common/ms_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/common/ssj_270_coco_instance.py
mmdet/configs/common/ssj_270_coco_instance.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/common/ms_poly_3x_coco_instance.py
mmdet/configs/common/ms_poly_3x_coco_instance.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/common/ms_3x_coco_instance.py
mmdet/configs/common/ms_3x_coco_instance.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/common/ssj_scp_270k_coco_instance.py
mmdet/configs/common/ssj_scp_270k_coco_instance.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 .ssj_270...
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/common/lsj_200e_coco_detection.py
mmdet/configs/common/lsj_200e_coco_detection.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 .lsj_100...
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/common/ms_poly_90k_coco_instance.py
mmdet/configs/common/ms_poly_90k_coco_instance.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/common/ms_90k_coco.py
mmdet/configs/common/ms_90k_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/common/lsj_100e_coco_detection.py
mmdet/configs/common/lsj_100e_coco_detection.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/common/lsj_100e_coco_instance.py
mmdet/configs/common/lsj_100e_coco_instance.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/common/lsj_200e_coco_instance.py
mmdet/configs/common/lsj_200e_coco_instance.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 .lsj_100...
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/detr/detr_r18_8xb2_500e_coco.py
mmdet/configs/detr/detr_r18_8xb2_500e_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 .detr_r50_8xb2_500e_coco import * model.update( dict( backbone=dict( depth=18, init_cfg=dict( type=...
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/detr/detr_r50_8xb2_500e_coco.py
mmdet/configs/detr/detr_r50_8xb2_500e_coco.py
# Copyright (c) OpenMMLab. All rights reserved. from mmengine.config import read_base from mmengine.optim.scheduler.lr_scheduler import MultiStepLR from mmengine.runner.loops import EpochBasedTrainLoop with read_base(): from .detr_r50_8xb2_150e_coco import * # learning policy max_epochs = 500 train_cfg.update( ...
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/detr/detr_r50_8xb2_150e_coco.py
mmdet/configs/detr/detr_r50_8xb2_150e_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/detr/detr_r101_8xb2_500e_coco.py
mmdet/configs/detr/detr_r101_8xb2_500e_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 .detr_r50_8xb2_500e_coco import * model.update( dict( backbone=dict( depth=101, init_cfg=dict( type...
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/qdtrack/qdtrack_faster_rcnn_r50_fpn_8xb2-4e_mot17halftrain_test-mot17halfval.py
mmdet/configs/qdtrack/qdtrack_faster_rcnn_r50_fpn_8xb2-4e_mot17halftrain_test-mot17halfval.py
# Copyright (c) OpenMMLab. All rights reserved. from mmengine.config import read_base with read_base(): from .._base_.datasets.mot_challenge import * from .qdtrack_faster_rcnn_r50_fpn_4e_base import * from mmdet.evaluation import CocoVideoMetric, MOTChallengeMetric # evaluator val_evaluator = [ dict(type...
python
Apache-2.0
cfd5d3a985b0249de009b67d04f37263e11cdf3d
2026-01-04T14:42:57.197037Z
false