From d4a7c9e022cce6f0ccb068ffedeb25c79497b6fb Mon Sep 17 00:00:00 2001 From: Wenyu Date: Sat, 6 Nov 2021 13:03:02 +0800 Subject: [PATCH] add reference (#4461) --- ppdet/modeling/backbones/swin_transformer.py | 5 +++++ ppdet/modeling/heads/sparsercnn_head.py | 5 +++++ ppdet/modeling/initializer.py | 4 ++++ ppdet/modeling/losses/sparsercnn_loss.py | 5 +++++ 4 files changed, 19 insertions(+) diff --git a/ppdet/modeling/backbones/swin_transformer.py b/ppdet/modeling/backbones/swin_transformer.py index 73da7958f..027e4f67a 100644 --- a/ppdet/modeling/backbones/swin_transformer.py +++ b/ppdet/modeling/backbones/swin_transformer.py @@ -11,6 +11,11 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +""" +This code is based on https://github.com/microsoft/Swin-Transformer/blob/main/models/swin_transformer.py +Ths copyright of microsoft/Swin-Transformer is as follows: +MIT License [see LICENSE for details] +""" import paddle import paddle.nn as nn diff --git a/ppdet/modeling/heads/sparsercnn_head.py b/ppdet/modeling/heads/sparsercnn_head.py index 30270b6ec..377cf27fc 100644 --- a/ppdet/modeling/heads/sparsercnn_head.py +++ b/ppdet/modeling/heads/sparsercnn_head.py @@ -11,6 +11,11 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +""" +This code is based on https://github.com/PeizeSun/SparseR-CNN/blob/main/projects/SparseRCNN/sparsercnn/head.py +Ths copyright of PeizeSun/SparseR-CNN is as follows: +MIT License [see LICENSE for details] +""" from __future__ import absolute_import from __future__ import division diff --git a/ppdet/modeling/initializer.py b/ppdet/modeling/initializer.py index ae0bc4287..b7a135dcc 100644 --- a/ppdet/modeling/initializer.py +++ b/ppdet/modeling/initializer.py @@ -11,6 +11,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +""" +This code is based on https://github.com/pytorch/pytorch/blob/master/torch/nn/init.py +Ths copyright of pytorch/pytorch is a BSD-style license, as found in the LICENSE file. +""" import math import numpy as np diff --git a/ppdet/modeling/losses/sparsercnn_loss.py b/ppdet/modeling/losses/sparsercnn_loss.py index d8fc3d117..2d36b21a2 100644 --- a/ppdet/modeling/losses/sparsercnn_loss.py +++ b/ppdet/modeling/losses/sparsercnn_loss.py @@ -11,6 +11,11 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +""" +This code is based on https://github.com/PeizeSun/SparseR-CNN/blob/main/projects/SparseRCNN/sparsercnn/loss.py +Ths copyright of PeizeSun/SparseR-CNN is as follows: +MIT License [see LICENSE for details] +""" from __future__ import absolute_import from __future__ import division -- GitLab