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/task_modules/assigners/center_region_assigner.py | mmdet/models/task_modules/assigners/center_region_assigner.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Tuple
import torch
from mmengine.structures import InstanceData
from torch import Tensor
from mmdet.registry import TASK_UTILS
from mmdet.utils import ConfigType
from .assign_result import AssignResult
from .base_assigner import BaseAssigner... | 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/task_modules/assigners/sim_ota_assigner.py | mmdet/models/task_modules/assigners/sim_ota_assigner.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Tuple
import torch
import torch.nn.functional as F
from mmengine.structures import InstanceData
from torch import Tensor
from mmdet.registry import TASK_UTILS
from mmdet.utils import ConfigType
from .assign_result import AssignResult
from .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/models/task_modules/assigners/atss_assigner.py | mmdet/models/task_modules/assigners/atss_assigner.py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
from typing import List, Optional
import torch
from mmengine.structures import InstanceData
from torch import Tensor
from mmdet.registry import TASK_UTILS
from mmdet.utils import ConfigType
from .assign_result import AssignResult
from .base_assigner 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/task_modules/assigners/approx_max_iou_assigner.py | mmdet/models/task_modules/assigners/approx_max_iou_assigner.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Union
import torch
from mmengine.config import ConfigDict
from mmengine.structures import InstanceData
from mmdet.registry import TASK_UTILS
from .assign_result import AssignResult
from .max_iou_assigner import MaxIoUAssigner
@TASK_UTILS.r... | 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/task_modules/assigners/__init__.py | mmdet/models/task_modules/assigners/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .approx_max_iou_assigner import ApproxMaxIoUAssigner
from .assign_result import AssignResult
from .atss_assigner import ATSSAssigner
from .base_assigner import BaseAssigner
from .center_region_assigner import CenterRegionAssigner
from .dynamic_soft_label_assigner 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/models/task_modules/assigners/max_iou_assigner.py | mmdet/models/task_modules/assigners/max_iou_assigner.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
from typing import Optional, Union
import torch
from mmengine.structures import InstanceData
from torch import Tensor
from mmdet.registry import TASK_UTILS
from .assign_result import AssignResult
from .base_assigner import BaseAssigner
def _perm_box(bboxes... | 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/task_modules/assigners/iou2d_calculator.py | mmdet/models/task_modules/assigners/iou2d_calculator.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox import bbox_overlaps, get_box_tensor
def cast_tensor_type(x, scale=1., dtype=None):
if dtype == 'fp16':
# scale is for preventing overflows
x = (x / scale).half()
retu... | 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/task_modules/assigners/hungarian_assigner.py | mmdet/models/task_modules/assigners/hungarian_assigner.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import List, Optional, Union
import torch
from mmengine import ConfigDict
from mmengine.structures import InstanceData
from scipy.optimize import linear_sum_assignment
from torch import Tensor
from mmdet.registry import TASK_UTILS
from .assign_result 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/task_modules/assigners/topk_hungarian_assigner.py | mmdet/models/task_modules/assigners/topk_hungarian_assigner.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmengine.structures import BaseDataElement
from scipy.optimize import linear_sum_assignment
from mmdet.registry import TASK_UTILS
from .assign_result import AssignResult
from .task_aligned_assigner import TaskAlignedAssigner
@TASK_UTILS.register_modul... | 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/task_modules/assigners/uniform_assigner.py | mmdet/models/task_modules/assigners/uniform_assigner.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional
import torch
from mmengine.structures import InstanceData
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox import bbox_xyxy_to_cxcywh
from mmdet.utils import ConfigType
from .assign_result import AssignResult
from .base_assign... | 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/task_modules/assigners/task_aligned_assigner.py | mmdet/models/task_modules/assigners/task_aligned_assigner.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional
import torch
from mmengine.structures import InstanceData
from mmdet.registry import TASK_UTILS
from mmdet.utils import ConfigType
from .assign_result import AssignResult
from .base_assigner import BaseAssigner
INF = 100000000
@TASK_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/task_modules/coders/distance_point_bbox_coder.py | mmdet/models/task_modules/coders/distance_point_bbox_coder.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Sequence, Union
from torch import Tensor
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox import (BaseBoxes, HorizontalBoxes, bbox2distance,
distance2bbox, get_box_tensor)
from .base_bbox_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/models/task_modules/coders/pseudo_bbox_coder.py | mmdet/models/task_modules/coders/pseudo_bbox_coder.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Union
from torch import Tensor
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox import BaseBoxes, HorizontalBoxes, get_box_tensor
from .base_bbox_coder import BaseBBoxCoder
@TASK_UTILS.register_module()
class PseudoBBoxCoder(BaseBBox... | 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/task_modules/coders/bucketing_bbox_coder.py | mmdet/models/task_modules/coders/bucketing_bbox_coder.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Sequence, Tuple, Union
import numpy as np
import torch
import torch.nn.functional as F
from torch import Tensor
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox import (BaseBoxes, HorizontalBoxes, bbox_rescale,
... | 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/task_modules/coders/base_bbox_coder.py | mmdet/models/task_modules/coders/base_bbox_coder.py | # Copyright (c) OpenMMLab. All rights reserved.
from abc import ABCMeta, abstractmethod
class BaseBBoxCoder(metaclass=ABCMeta):
"""Base bounding box coder.
Args:
use_box_type (bool): Whether to warp decoded boxes with the
box type data structure. Defaults to False.
"""
# The size... | 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/task_modules/coders/__init__.py | mmdet/models/task_modules/coders/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .base_bbox_coder import BaseBBoxCoder
from .bucketing_bbox_coder import BucketingBBoxCoder
from .delta_xywh_bbox_coder import (DeltaXYWHBBoxCoder,
DeltaXYWHBBoxCoderForGLIP)
from .distance_point_bbox_coder import DistancePointBBoxC... | 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/task_modules/coders/yolo_bbox_coder.py | mmdet/models/task_modules/coders/yolo_bbox_coder.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Union
import torch
from torch import Tensor
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox import BaseBoxes, HorizontalBoxes, get_box_tensor
from .base_bbox_coder import BaseBBoxCoder
@TASK_UTILS.register_module()
class YOLOBBoxCod... | 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/task_modules/coders/delta_xywh_bbox_coder.py | mmdet/models/task_modules/coders/delta_xywh_bbox_coder.py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
from typing import Optional, Sequence, Union
import numpy as np
import torch
from torch import Tensor
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox import BaseBoxes, HorizontalBoxes, get_box_tensor
from .base_bbox_coder import BaseBBox... | 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/task_modules/coders/tblr_bbox_coder.py | mmdet/models/task_modules/coders/tblr_bbox_coder.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Sequence, Union
import torch
from torch import Tensor
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox import BaseBoxes, HorizontalBoxes, get_box_tensor
from .base_bbox_coder import BaseBBoxCoder
@TASK_UTILS.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/task_modules/coders/legacy_delta_xywh_bbox_coder.py | mmdet/models/task_modules/coders/legacy_delta_xywh_bbox_coder.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Sequence, Union
import numpy as np
import torch
from torch import Tensor
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox import BaseBoxes, HorizontalBoxes, get_box_tensor
from .base_bbox_coder import BaseBBoxCoder
@TASK_UT... | 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/task_modules/samplers/random_sampler.py | mmdet/models/task_modules/samplers/random_sampler.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Union
import torch
from numpy import ndarray
from torch import Tensor
from mmdet.registry import TASK_UTILS
from ..assigners import AssignResult
from .base_sampler import BaseSampler
@TASK_UTILS.register_module()
class RandomSampler(BaseSampler):
... | 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/task_modules/samplers/score_hlr_sampler.py | mmdet/models/task_modules/samplers/score_hlr_sampler.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Union
import torch
from mmcv.ops import nms_match
from mmengine.structures import InstanceData
from numpy import ndarray
from torch import Tensor
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox import bbox2roi
from ..assigners 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/task_modules/samplers/base_sampler.py | mmdet/models/task_modules/samplers/base_sampler.py | # Copyright (c) OpenMMLab. All rights reserved.
from abc import ABCMeta, abstractmethod
import torch
from mmengine.structures import InstanceData
from mmdet.structures.bbox import BaseBoxes, cat_boxes
from ..assigners import AssignResult
from .sampling_result import SamplingResult
class BaseSampler(metaclass=ABCMet... | 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/task_modules/samplers/instance_balanced_pos_sampler.py | mmdet/models/task_modules/samplers/instance_balanced_pos_sampler.py | # Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
import torch
from mmdet.registry import TASK_UTILS
from .random_sampler import RandomSampler
@TASK_UTILS.register_module()
class InstanceBalancedPosSampler(RandomSampler):
"""Instance balanced sampler that samples equal number of positive samples... | 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/task_modules/samplers/multi_instance_random_sampler.py | mmdet/models/task_modules/samplers/multi_instance_random_sampler.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Union
import torch
from mmengine.structures import InstanceData
from numpy import ndarray
from torch import Tensor
from mmdet.registry import TASK_UTILS
from ..assigners import AssignResult
from .multi_instance_sampling_result import MultiInstanceSamp... | 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/task_modules/samplers/mask_pseudo_sampler.py | mmdet/models/task_modules/samplers/mask_pseudo_sampler.py | # Copyright (c) OpenMMLab. All rights reserved.
"""copy from
https://github.com/ZwwWayne/K-Net/blob/main/knet/det/mask_pseudo_sampler.py."""
import torch
from mmengine.structures import InstanceData
from mmdet.registry import TASK_UTILS
from ..assigners import AssignResult
from .base_sampler import BaseSampler
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/models/task_modules/samplers/ohem_sampler.py | mmdet/models/task_modules/samplers/ohem_sampler.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox import bbox2roi
from .base_sampler import BaseSampler
@TASK_UTILS.register_module()
class OHEMSampler(BaseSampler):
r"""Online Hard Example Mining Sampler described in `Training Region-ba... | 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/task_modules/samplers/sampling_result.py | mmdet/models/task_modules/samplers/sampling_result.py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
import numpy as np
import torch
from torch import Tensor
from mmdet.structures.bbox import BaseBoxes, cat_boxes
from mmdet.utils import util_mixins
from mmdet.utils.util_random import ensure_rng
from ..assigners import AssignResult
def random_boxes(num... | 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/task_modules/samplers/multi_instance_sampling_result.py | mmdet/models/task_modules/samplers/multi_instance_sampling_result.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from torch import Tensor
from ..assigners import AssignResult
from .sampling_result import SamplingResult
class MultiInstanceSamplingResult(SamplingResult):
"""Bbox sampling result. Further encapsulation of SamplingResult. Three
attributes neg_assi... | 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/task_modules/samplers/combined_sampler.py | mmdet/models/task_modules/samplers/combined_sampler.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import TASK_UTILS
from .base_sampler import BaseSampler
@TASK_UTILS.register_module()
class CombinedSampler(BaseSampler):
"""A sampler that combines positive sampler and negative sampler."""
def __init__(self, pos_sampler, neg_sampler, **kwa... | 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/task_modules/samplers/__init__.py | mmdet/models/task_modules/samplers/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .base_sampler import BaseSampler
from .combined_sampler import CombinedSampler
from .instance_balanced_pos_sampler import InstanceBalancedPosSampler
from .iou_balanced_neg_sampler import IoUBalancedNegSampler
from .mask_pseudo_sampler import MaskPseudoSampler
from .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/models/task_modules/samplers/mask_sampling_result.py | mmdet/models/task_modules/samplers/mask_sampling_result.py | # Copyright (c) OpenMMLab. All rights reserved.
"""copy from
https://github.com/ZwwWayne/K-Net/blob/main/knet/det/mask_pseudo_sampler.py."""
import torch
from torch import Tensor
from ..assigners import AssignResult
from .sampling_result import SamplingResult
class MaskSamplingResult(SamplingResult):
"""Mask sa... | 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/task_modules/samplers/pseudo_sampler.py | mmdet/models/task_modules/samplers/pseudo_sampler.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmengine.structures import InstanceData
from mmdet.registry import TASK_UTILS
from ..assigners import AssignResult
from .base_sampler import BaseSampler
from .sampling_result import SamplingResult
@TASK_UTILS.register_module()
class PseudoSampler(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/models/task_modules/samplers/iou_balanced_neg_sampler.py | mmdet/models/task_modules/samplers/iou_balanced_neg_sampler.py | # Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
import torch
from mmdet.registry import TASK_UTILS
from .random_sampler import RandomSampler
@TASK_UTILS.register_module()
class IoUBalancedNegSampler(RandomSampler):
"""IoU Balanced Sampling.
arXiv: https://arxiv.org/pdf/1904.02701.pdf (CVP... | 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/task_modules/prior_generators/point_generator.py | mmdet/models/task_modules/prior_generators/point_generator.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import List, Tuple, Union
import numpy as np
import torch
from torch import Tensor
from torch.nn.modules.utils import _pair
from mmdet.registry import TASK_UTILS
DeviceType = Union[str, torch.device]
@TASK_UTILS.register_module()
class PointGenerator:
... | 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/task_modules/prior_generators/utils.py | mmdet/models/task_modules/prior_generators/utils.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Tuple
import torch
from torch import Tensor
from mmdet.structures.bbox import BaseBoxes
def anchor_inside_flags(flat_anchors: Tensor,
valid_flags: Tensor,
img_shape: Tuple[int],
... | 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/task_modules/prior_generators/__init__.py | mmdet/models/task_modules/prior_generators/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .anchor_generator import (AnchorGenerator, LegacyAnchorGenerator,
SSDAnchorGenerator, YOLOAnchorGenerator)
from .point_generator import MlvlPointGenerator, PointGenerator
from .utils import anchor_inside_flags, calc_region
__all__ = [
... | 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/task_modules/prior_generators/anchor_generator.py | mmdet/models/task_modules/prior_generators/anchor_generator.py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
from typing import List, Optional, Tuple, Union
import numpy as np
import torch
from mmengine.utils import is_tuple_of
from torch import Tensor
from torch.nn.modules.utils import _pair
from mmdet.registry import TASK_UTILS
from mmdet.structures.bbox impo... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | true |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/layers/csp_layer.py | mmdet/models/layers/csp_layer.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 torch import Tensor
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .se_layer import ChannelAttention
clas... | 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/layers/dropblock.py | mmdet/models/layers/dropblock.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmdet.registry import MODELS
eps = 1e-6
@MODELS.register_module()
class DropBlock(nn.Module):
"""Randomly drop some regions of feature maps.
Please refer to the method proposed in `DropB... | 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/layers/matrix_nms.py | mmdet/models/layers/matrix_nms.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
def mask_matrix_nms(masks,
labels,
scores,
filter_thr=-1,
nms_pre=-1,
max_num=-1,
kernel='gaussian',
sigma=2.0,
... | 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/layers/se_layer.py | mmdet/models/layers/se_layer.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
from mmcv.cnn import ConvModule
from mmengine.model import BaseModule
from mmengine.utils import digit_version, is_tuple_of
from torch import Tensor
from mmdet.utils import MultiConfig, OptConfigType, OptMultiConfig
class SELayer(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/models/layers/ema.py | mmdet/models/layers/ema.py | # Copyright (c) OpenMMLab. All rights reserved.
import math
from typing import Optional
import torch
import torch.nn as nn
from mmengine.model import ExponentialMovingAverage
from torch import Tensor
from mmdet.registry import MODELS
@MODELS.register_module()
class ExpMomentumEMA(ExponentialMovingAverage):
"""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/models/layers/inverted_residual.py | mmdet/models/layers/inverted_residual.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch.nn as nn
import torch.utils.checkpoint as cp
from mmcv.cnn import ConvModule
from mmcv.cnn.bricks import DropPath
from mmengine.model import BaseModule
from .se_layer import SELayer
class InvertedResidual(BaseModule):
"""Inverted Residual Block.
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/models/layers/bbox_nms.py | mmdet/models/layers/bbox_nms.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Tuple, Union
import torch
from mmcv.ops.nms import batched_nms
from torch import Tensor
from mmdet.structures.bbox import bbox_overlaps
from mmdet.utils import ConfigType
def multiclass_nms(
multi_bboxes: Tensor,
multi_scores: Tens... | 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/layers/brick_wrappers.py | mmdet/models/layers/brick_wrappers.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn.bricks.wrappers import NewEmptyTensorOp, obsolete_torch_version
from mmdet.registry import MODELS
if torch.__version__ == 'parrots':
TORCH_VERSION = torch.__version__
else:
# torch.... | 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/layers/positional_encoding.py | mmdet/models/layers/positional_encoding.py | # Copyright (c) OpenMMLab. All rights reserved.
import math
from typing import Optional
import torch
import torch.nn as nn
from mmengine.model import BaseModule
from torch import Tensor
from mmdet.registry import MODELS
from mmdet.utils import MultiConfig, OptMultiConfig
@MODELS.register_module()
class SinePosition... | 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/layers/__init__.py | mmdet/models/layers/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .activations import SiLU
from .bbox_nms import fast_nms, multiclass_nms
from .brick_wrappers import (AdaptiveAvgPool2d, FrozenBatchNorm2d,
adaptive_avg_pool2d)
from .conv_upsample import ConvUpsample
from .csp_layer import CSPLayer
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/models/layers/normed_predictor.py | mmdet/models/layers/normed_predictor.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmengine.utils import digit_version
from torch import Tensor
from mmdet.registry import MODELS
MODELS.register_module('Linear', module=nn.Linear)
@MODELS.register_module(name='NormedLinear')
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/models/layers/res_layer.py | mmdet/models/layers/res_layer.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional
from mmcv.cnn import build_conv_layer, build_norm_layer
from mmengine.model import BaseModule, Sequential
from torch import Tensor
from torch import nn as nn
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
class ResLayer(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/layers/msdeformattn_pixel_decoder.py | mmdet/models/layers/msdeformattn_pixel_decoder.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import List, Tuple, Union
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import Conv2d, ConvModule
from mmcv.cnn.bricks.transformer import MultiScaleDeformableAttention
from mmengine.model import (BaseModule, ModuleList, caff... | 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/layers/conv_upsample.py | mmdet/models/layers/conv_upsample.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch.nn.functional as F
from mmcv.cnn import ConvModule
from mmengine.model import BaseModule, ModuleList
class ConvUpsample(BaseModule):
"""ConvUpsample performs 2x upsampling after Conv.
There are several `ConvModule` layers. In the first few layers, ... | 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/layers/pixel_decoder.py | mmdet/models/layers/pixel_decoder.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import List, Tuple, Union
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import Conv2d, ConvModule
from mmengine.model import BaseModule, ModuleList, caffe2_xavier_init
from torch import Tensor
from mmdet.registry import MOD... | 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/layers/activations.py | mmdet/models/layers/activations.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
from mmengine.utils import digit_version
from mmdet.registry import MODELS
if digit_version(torch.__version__) >= digit_version('1.7.0'):
from torch.nn import SiLU
else:
class SiLU(nn.Module):
"""Sigmoid Weighted Liner... | 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/layers/transformer/ddq_detr_layers.py | mmdet/models/layers/transformer/ddq_detr_layers.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import torch
from mmcv.ops import batched_nms
from torch import Tensor, nn
from mmdet.structures.bbox import bbox_cxcywh_to_xyxy
from .deformable_detr_layers import DeformableDetrTransformerDecoder
from .utils import MLP, coordinate_to_encoding, inverse_sigm... | 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/layers/transformer/dab_detr_layers.py | mmdet/models/layers/transformer/dab_detr_layers.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import List
import torch
import torch.nn as nn
from mmcv.cnn import build_norm_layer
from mmcv.cnn.bricks.transformer import FFN
from mmengine.model import ModuleList
from torch import Tensor
from .detr_layers import (DetrTransformerDecoder, DetrTransformerD... | 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/layers/transformer/grounding_dino_layers.py | mmdet/models/layers/transformer/grounding_dino_layers.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
from mmcv.cnn import build_norm_layer
from mmcv.cnn.bricks.transformer import FFN, MultiheadAttention
from mmcv.ops import MultiScaleDeformableAttention
from mmengine.model import ModuleList
from torch import Tensor
from mmdet.models.ut... | 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/layers/transformer/conditional_detr_layers.py | mmdet/models/layers/transformer/conditional_detr_layers.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmcv.cnn import build_norm_layer
from mmcv.cnn.bricks.transformer import FFN
from torch import Tensor
from torch.nn import ModuleList
from .detr_layers import DetrTransformerDecoder, DetrTransformerDecoderLayer
from .utils import MLP, ConditionalAttenti... | 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/layers/transformer/detr_layers.py | mmdet/models/layers/transformer/detr_layers.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Union
import torch
from mmcv.cnn import build_norm_layer
from mmcv.cnn.bricks.transformer import FFN, MultiheadAttention
from mmengine import ConfigDict
from mmengine.model import BaseModule, ModuleList
from torch import Tensor
from mmdet.utils 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/layers/transformer/mask2former_layers.py | mmdet/models/layers/transformer/mask2former_layers.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmcv.cnn import build_norm_layer
from mmengine.model import ModuleList
from torch import Tensor
from .deformable_detr_layers import DeformableDetrTransformerEncoder
from .detr_layers import DetrTransformerDecoder, DetrTransformerDecoderLayer
class Mask2FormerTrans... | 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/layers/transformer/utils.py | mmdet/models/layers/transformer/utils.py | # Copyright (c) OpenMMLab. All rights reserved.
import math
import warnings
from typing import Optional, Sequence, Tuple, Union
import torch
import torch.nn.functional as F
from mmcv.cnn import (Linear, build_activation_layer, build_conv_layer,
build_norm_layer)
from mmcv.cnn.bricks.drop import D... | python | Apache-2.0 | cfd5d3a985b0249de009b67d04f37263e11cdf3d | 2026-01-04T14:42:57.197037Z | true |
open-mmlab/mmdetection | https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/mmdet/models/layers/transformer/__init__.py | mmdet/models/layers/transformer/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .conditional_detr_layers import (ConditionalDetrTransformerDecoder,
ConditionalDetrTransformerDecoderLayer)
from .dab_detr_layers import (DABDetrTransformerDecoder,
DABDetrTransformerDecoderLayer,
... | 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/layers/transformer/deformable_detr_layers.py | mmdet/models/layers/transformer/deformable_detr_layers.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Tuple, Union
import torch
from mmcv.cnn import build_norm_layer
from mmcv.cnn.bricks.transformer import FFN, MultiheadAttention
from mmcv.ops import MultiScaleDeformableAttention
from mmengine.model import ModuleList
from torch import Tensor,... | 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/layers/transformer/dino_layers.py | mmdet/models/layers/transformer/dino_layers.py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
from typing import Tuple, Union
import torch
from mmengine.model import BaseModule
from torch import Tensor, nn
from mmdet.structures import SampleList
from mmdet.structures.bbox import bbox_xyxy_to_cxcywh
from mmdet.utils import OptConfigType
from .defo... | 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/test_time_augs/det_tta.py | mmdet/models/test_time_augs/det_tta.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import List, Tuple
import torch
from mmcv.ops import batched_nms
from mmengine.model import BaseTTAModel
from mmengine.registry import MODELS
from mmengine.structures import InstanceData
from torch import Tensor
from mmdet.structures import DetDataSample
fro... | 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/test_time_augs/merge_augs.py | mmdet/models/test_time_augs/merge_augs.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import warnings
from typing import List, Optional, Union
import numpy as np
import torch
from mmcv.ops import nms
from mmengine.config import ConfigDict
from torch import Tensor
from mmdet.structures.bbox import bbox_mapping_back
# TODO remove this, never ... | 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/test_time_augs/__init__.py | mmdet/models/test_time_augs/__init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .det_tta import DetTTAModel
from .merge_augs import (merge_aug_bboxes, merge_aug_masks,
merge_aug_proposals, merge_aug_results,
merge_aug_scores)
__all__ = [
'merge_aug_bboxes', 'merge_aug_masks', 'merge_aug_prop... | 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/detectors/yolox.py | mmdet/models/detectors/yolox.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage import SingleStageDetector
@MODELS.register_module()
class YOLOX(SingleStageDetector):
r"""Implementation of `YOLOX: Exceeding YOLO Series in 2021
... | 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/detectors/grounding_dino.py | mmdet/models/detectors/grounding_dino.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import re
import warnings
from typing import Dict, Optional, Tuple, Union
import torch
import torch.nn as nn
from mmengine.runner.amp import autocast
from torch import Tensor
from mmdet.registry import MODELS
from mmdet.structures import OptSampleList, Sampl... | 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/detectors/two_stage.py | mmdet/models/detectors/two_stage.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import warnings
from typing import List, Tuple, Union
import torch
from torch import Tensor
from mmdet.registry import MODELS
from mmdet.structures import SampleList
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .base import BaseDete... | 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/detectors/nasfcos.py | mmdet/models/detectors/nasfcos.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage import SingleStageDetector
@MODELS.register_module()
class NASFCOS(SingleStageDetector):
"""Implementation of `NAS-FCOS: Fast Neural Architecture 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/detectors/mask_rcnn.py | mmdet/models/detectors/mask_rcnn.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import ConfigDict
from mmdet.registry import MODELS
from mmdet.utils import OptConfigType, OptMultiConfig
from .two_stage import TwoStageDetector
@MODELS.register_module()
class MaskRCNN(TwoStageDetector):
"""Implementation of `Mask R-CNN <http... | 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/detectors/lad.py | mmdet/models/detectors/lad.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional
import torch
import torch.nn as nn
from mmengine.runner import load_checkpoint
from torch import Tensor
from mmdet.registry import MODELS
from mmdet.structures import SampleList
from mmdet.utils import ConfigType, OptConfigType
from ..utils.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/models/detectors/conditional_detr.py | mmdet/models/detectors/conditional_detr.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Dict
import torch.nn as nn
from torch import Tensor
from mmdet.registry import MODELS
from ..layers import (ConditionalDetrTransformerDecoder,
DetrTransformerEncoder, SinePositionalEncoding)
from .detr import DETR
@MODELS.regis... | 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/detectors/fast_rcnn.py | mmdet/models/detectors/fast_rcnn.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .two_stage import TwoStageDetector
@MODELS.register_module()
class FastRCNN(TwoStageDetector):
"""Implementation of `Fast R-CNN <https://arxiv.org/abs/1504.08083... | 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/detectors/cornernet.py | mmdet/models/detectors/cornernet.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage import SingleStageDetector
@MODELS.register_module()
class CornerNet(SingleStageDetector):
"""CornerNet.
This detector is the implementation o... | 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/detectors/panoptic_two_stage_segmentor.py | mmdet/models/detectors/panoptic_two_stage_segmentor.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
from typing import List
import torch
from mmengine.structures import PixelData
from torch import Tensor
from mmdet.registry import MODELS
from mmdet.structures import SampleList
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .two_stag... | 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/detectors/centernet.py | mmdet/models/detectors/centernet.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage import SingleStageDetector
@MODELS.register_module()
class CenterNet(SingleStageDetector):
"""Implementation of CenterNet(Objects as Points)
<... | 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/detectors/reppoints_detector.py | mmdet/models/detectors/reppoints_detector.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage import SingleStageDetector
@MODELS.register_module()
class RepPointsDetector(SingleStageDetector):
"""RepPoints: Point Set Representation for Objec... | 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/detectors/grid_rcnn.py | mmdet/models/detectors/grid_rcnn.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .two_stage import TwoStageDetector
@MODELS.register_module()
class GridRCNN(TwoStageDetector):
"""Grid R-CNN.
This detector is the implementation 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/detectors/boxinst.py | mmdet/models/detectors/boxinst.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage_instance_seg import SingleStageInstanceSegmentor
@MODELS.register_module()
class BoxInst(SingleStageInstanceSegmentor):
"""Implementation of `BoxIn... | 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/detectors/retinanet.py | mmdet/models/detectors/retinanet.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage import SingleStageDetector
@MODELS.register_module()
class RetinaNet(SingleStageDetector):
"""Implementation of `RetinaNet <https://arxiv.org/abs/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/models/detectors/panoptic_fpn.py | mmdet/models/detectors/panoptic_fpn.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .panoptic_two_stage_segmentor import TwoStagePanopticSegmentor
@MODELS.register_module()
class PanopticFPN(TwoStagePanopticSegmentor):
r"""Implementation of `Pan... | 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/detectors/maskformer.py | mmdet/models/detectors/maskformer.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Dict, List, Tuple
from torch import Tensor
from mmdet.registry import MODELS
from mmdet.structures import SampleList
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage import SingleStageDetector
@MODELS.register_mod... | 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/detectors/cascade_rcnn.py | mmdet/models/detectors/cascade_rcnn.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .two_stage import TwoStageDetector
@MODELS.register_module()
class CascadeRCNN(TwoStageDetector):
r"""Implementation of `Cascade R-CNN: Delving into High Quality... | 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/detectors/ddod.py | mmdet/models/detectors/ddod.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage import SingleStageDetector
@MODELS.register_module()
class DDOD(SingleStageDetector):
"""Implementation of `DDOD <https://arxiv.org/pdf/2107.02963.... | 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/detectors/solo.py | mmdet/models/detectors/solo.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage_instance_seg import SingleStageInstanceSegmentor
@MODELS.register_module()
class SOLO(SingleStageInstanceSegmentor):
"""`SOLO: Segmenting Objects 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/models/detectors/faster_rcnn.py | mmdet/models/detectors/faster_rcnn.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .two_stage import TwoStageDetector
@MODELS.register_module()
class FasterRCNN(TwoStageDetector):
"""Implementation of `Faster R-CNN <https://arxiv.org/abs/1506.0... | 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/detectors/yolof.py | mmdet/models/detectors/yolof.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage import SingleStageDetector
@MODELS.register_module()
class YOLOF(SingleStageDetector):
r"""Implementation of `You Only Look One-level Feature
<... | 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/detectors/deformable_detr.py | mmdet/models/detectors/deformable_detr.py | # Copyright (c) OpenMMLab. All rights reserved.
import math
from typing import Dict, Tuple
import torch
import torch.nn.functional as F
from mmcv.cnn.bricks.transformer import MultiScaleDeformableAttention
from mmengine.model import xavier_init
from torch import Tensor, nn
from torch.nn.init import normal_
from mmdet... | 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/detectors/point_rend.py | mmdet/models/detectors/point_rend.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmengine.config import ConfigDict
from mmdet.registry import MODELS
from mmdet.utils import OptConfigType, OptMultiConfig
from .two_stage import TwoStageDetector
@MODELS.register_module()
class PointRend(TwoStageDetector):
"""PointRend: Image Segmentation as R... | 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/detectors/single_stage_instance_seg.py | mmdet/models/detectors/single_stage_instance_seg.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
from typing import Tuple
from torch import Tensor
from mmdet.registry import MODELS
from mmdet.structures import OptSampleList, SampleList
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .base import BaseDetector
INF = 1e8
@MODELS.r... | 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/detectors/trident_faster_rcnn.py | mmdet/models/detectors/trident_faster_rcnn.py | # Copyright (c) OpenMMLab. All rights reserved.
from torch import Tensor
from mmdet.registry import MODELS
from mmdet.structures import SampleList
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .faster_rcnn import FasterRCNN
@MODELS.register_module()
class TridentFasterRCNN(FasterRCNN):
"... | 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/detectors/base_detr.py | mmdet/models/detectors/base_detr.py | # Copyright (c) OpenMMLab. All rights reserved.
from abc import ABCMeta, abstractmethod
from typing import Dict, List, Tuple, Union
from torch import Tensor
from mmdet.registry import MODELS
from mmdet.structures import OptSampleList, SampleList
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
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/models/detectors/htc.py | mmdet/models/detectors/htc.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from .cascade_rcnn import CascadeRCNN
@MODELS.register_module()
class HybridTaskCascade(CascadeRCNN):
"""Implementation of `HTC <https://arxiv.org/abs/1901.07518>`_"""
def __init__(self, **kwargs) -> None:
super().__ini... | 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/detectors/autoassign.py | mmdet/models/detectors/autoassign.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage import SingleStageDetector
@MODELS.register_module()
class AutoAssign(SingleStageDetector):
"""Implementation of `AutoAssign: Differentiable Label ... | 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/detectors/tood.py | mmdet/models/detectors/tood.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage import SingleStageDetector
@MODELS.register_module()
class TOOD(SingleStageDetector):
r"""Implementation of `TOOD: Task-aligned One-stage Object De... | 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/detectors/detr.py | mmdet/models/detectors/detr.py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Dict, Tuple
import torch
import torch.nn.functional as F
from torch import Tensor, nn
from mmdet.registry import MODELS
from mmdet.structures import OptSampleList
from ..layers import (DetrTransformerDecoder, DetrTransformerEncoder,
... | 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/detectors/yolact.py | mmdet/models/detectors/yolact.py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdet.registry import MODELS
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
from .single_stage_instance_seg import SingleStageInstanceSegmentor
@MODELS.register_module()
class YOLACT(SingleStageInstanceSegmentor):
"""Implementation of `YOLACT... | 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/detectors/soft_teacher.py | mmdet/models/detectors/soft_teacher.py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
from typing import List, Optional, Tuple
import torch
from mmengine.structures import InstanceData
from torch import Tensor
from mmdet.models.utils import (filter_gt_instances, rename_loss_dict,
reweight_loss_dict)
from mmdet.... | 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.