[Fix] Add Copyright to the files in the `mmdet` (#6809)

* Add Copyright to the files in the

* use open-mmlab/pre-commit-hooks
pull/6845/head^2
Czm369 3 years ago committed by GitHub
parent eb1903fcc8
commit e363d34180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .pre-commit-config.yaml
  2. 1
      mmdet/core/bbox/coder/distance_point_bbox_coder.py
  3. 1
      mmdet/datasets/samplers/infinite_sampler.py
  4. 1
      mmdet/models/backbones/pvt.py
  5. 1
      mmdet/models/backbones/swin.py
  6. 1
      mmdet/models/dense_heads/lad_head.py
  7. 1
      mmdet/models/detectors/lad.py
  8. 1
      mmdet/models/detectors/queryinst.py
  9. 1
      mmdet/models/detectors/solo.py
  10. 1
      mmdet/models/roi_heads/mask_heads/dynamic_mask_head.py
  11. 1
      mmdet/models/utils/brick_wrappers.py

@ -43,7 +43,9 @@ repos:
hooks:
- id: docformatter
args: ["--in-place", "--wrap-descriptions", "79"]
- repo: https://github.com/zhouzaida/pre-commit-hooks
- repo: https://github.com/open-mmlab/pre-commit-hooks
rev: master # Use the ref you want to point at
hooks:
- id: check-algo-readme
- id: check-copyright
args: ["mmdet"] # replace the dir_to_check with your expected directory to check

@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
from ..builder import BBOX_CODERS
from ..transforms import bbox2distance, distance2bbox
from .base_bbox_coder import BaseBBoxCoder

@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import itertools
import numpy as np

@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import math
import warnings

@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import warnings
from collections import OrderedDict
from copy import deepcopy

@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmcv.runner import force_fp32

@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
from mmcv.runner import load_checkpoint

@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
from ..builder import DETECTORS
from .sparse_rcnn import SparseRCNN

@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
from ..builder import DETECTORS
from .single_stage_instance_seg import SingleStageInstanceSegmentor

@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
from mmcv.runner import auto_fp16, force_fp32

@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
import torch.nn.functional as F

Loading…
Cancel
Save