diff --git a/ppgan/datasets/firstorder_dataset.py b/ppgan/datasets/firstorder_dataset.py index e2ad0f52da0beb1eee47a95c64cd5ee3a9f0423d..f41733a04d9df89181fadddba8c6b8e3eee65e2a 100755 --- a/ppgan/datasets/firstorder_dataset.py +++ b/ppgan/datasets/firstorder_dataset.py @@ -1,18 +1,6 @@ -# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. - # code was heavily based on https://github.com/AliaksandrSiarohin/first-order-model +# Users should be careful about adopting these functions in any commercial matters. +# https://github.com/AliaksandrSiarohin/first-order-model/blob/master/LICENSE.md import logging from multiprocessing import Pool diff --git a/ppgan/faceutils/face_detection/detection/blazeface/net_blazeface.py b/ppgan/faceutils/face_detection/detection/blazeface/net_blazeface.py index ca066be394987daf3baa44a712514c209e1cf53e..9e182708c0e3e432fa1ce39b378a9fa267e28477 100644 --- a/ppgan/faceutils/face_detection/detection/blazeface/net_blazeface.py +++ b/ppgan/faceutils/face_detection/detection/blazeface/net_blazeface.py @@ -1,16 +1,6 @@ -# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. +# code was heavily based on https://github.com/hollance/BlazeFace-PyTorch +# This work is licensed under the same terms as MediaPipe (Apache License 2.0) +# https://github.com/google/mediapipe/blob/master/LICENSE import numpy as np import paddle diff --git a/ppgan/faceutils/face_detection/detection/sfd/bbox.py b/ppgan/faceutils/face_detection/detection/sfd/bbox.py index 02b21a46846f579031a1870f6eaa60c81f9d4f71..e268a29be681c0186742dbd4e56ee902043b946d 100644 --- a/ppgan/faceutils/face_detection/detection/sfd/bbox.py +++ b/ppgan/faceutils/face_detection/detection/sfd/bbox.py @@ -1,16 +1,5 @@ -# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. +# code was heavily based on https://github.com/clovaai/EXTD_Pytorch +# Copyright (c) 2019-present NAVER Corp. from __future__ import print_function import os diff --git a/ppgan/metrics/fid.py b/ppgan/metrics/fid.py index 1d36ca35193cd447d85c270e5f6a7eb5b439521c..5fc8b473b267b3f54a1c38877a501b722a089e34 100644 --- a/ppgan/metrics/fid.py +++ b/ppgan/metrics/fid.py @@ -1,16 +1,7 @@ -#Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -#Licensed under the Apache License, Version 2.0 (the "License"); -#you may not use this file except in compliance with the License. -#You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -#Unless required by applicable law or agreed to in writing, software -#distributed under the License is distributed on an "AS IS" BASIS, -#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. +# code was heavily based on https://github.com/mseitzer/pytorch-fid +# This implementation is licensed under the Apache License 2.0. +# Copyright (c) mseitzer + import os import fnmatch diff --git a/ppgan/metrics/inception.py b/ppgan/metrics/inception.py index b98f2fc62c6cb5cd6c94e6cfb86138bbe8715604..45640b7b512bdf425c37b0e07fe63b77ba439613 100644 --- a/ppgan/metrics/inception.py +++ b/ppgan/metrics/inception.py @@ -1,16 +1,7 @@ -#Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -#Licensed under the Apache License, Version 2.0 (the "License"); -#you may not use this file except in compliance with the License. -#You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -#Unless required by applicable law or agreed to in writing, software -#distributed under the License is distributed on an "AS IS" BASIS, -#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. +# code was heavily based on https://github.com/pytorch/vision/blob/main/torchvision/models/inception.py +# BSD 3-Clause License +# Copyright (c) Soumith Chintala 2016 + import math import paddle diff --git a/ppgan/models/discriminators/discriminator_firstorder.py b/ppgan/models/discriminators/discriminator_firstorder.py index c8db7097e971899979a7c24b1858917cc873dfdf..9a18d70e9d274c2c2cddd61beae1f251963c7770 100755 --- a/ppgan/models/discriminators/discriminator_firstorder.py +++ b/ppgan/models/discriminators/discriminator_firstorder.py @@ -1,18 +1,6 @@ -# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. - # code was heavily based on https://github.com/AliaksandrSiarohin/first-order-model +# Users should be careful about adopting these functions in any commercial matters. +# https://github.com/AliaksandrSiarohin/first-order-model/blob/master/LICENSE.md import paddle import paddle.nn as nn diff --git a/ppgan/models/discriminators/syncnet.py b/ppgan/models/discriminators/syncnet.py index e597844d857c338b06f1dd79c9ed4bc2517fe67f..9fc3d26aa5794c6e771431c7f863bad8b5feaea8 100644 --- a/ppgan/models/discriminators/syncnet.py +++ b/ppgan/models/discriminators/syncnet.py @@ -1,3 +1,7 @@ +# code was heavily based on https://github.com/Rudrabha/Wav2Lip +# Users should be careful about adopting these functions in any commercial matters. +# https://github.com/Rudrabha/Wav2Lip#license-and-citation + import paddle from paddle import nn from paddle.nn import functional as F diff --git a/ppgan/models/discriminators/wav2lip_disc_qual.py b/ppgan/models/discriminators/wav2lip_disc_qual.py index 30dfa5d42669688b393adc6bd1687f6e05864da3..ea1f9c8fddc946aa0734b7239800d8aa03092379 100644 --- a/ppgan/models/discriminators/wav2lip_disc_qual.py +++ b/ppgan/models/discriminators/wav2lip_disc_qual.py @@ -1,3 +1,7 @@ +# code was heavily based on https://github.com/Rudrabha/Wav2Lip +# Users should be careful about adopting these functions in any commercial matters. +# https://github.com/Rudrabha/Wav2Lip#license-and-citation + import paddle from paddle import nn from paddle.nn import functional as F diff --git a/ppgan/models/generators/generator_firstorder.py b/ppgan/models/generators/generator_firstorder.py index 0c99cc1be95ff97f6df92c8df9cafcb0c644e33b..72d1b2c9a98cfc9f26b1b6c5e99c8eb3f896b2a9 100755 --- a/ppgan/models/generators/generator_firstorder.py +++ b/ppgan/models/generators/generator_firstorder.py @@ -1,18 +1,6 @@ -# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. - # code was heavily based on https://github.com/AliaksandrSiarohin/first-order-model +# Users should be careful about adopting these functions in any commercial matters. +# https://github.com/AliaksandrSiarohin/first-order-model/blob/master/LICENSE.md import numpy as np import paddle diff --git a/ppgan/models/generators/occlusion_aware.py b/ppgan/models/generators/occlusion_aware.py index a19c11536069959469571fbfd94beae85b4ab952..4e9831a8a8a9169d9da67de0dce9a786cfa68468 100644 --- a/ppgan/models/generators/occlusion_aware.py +++ b/ppgan/models/generators/occlusion_aware.py @@ -1,18 +1,6 @@ -# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. - # code was heavily based on https://github.com/AliaksandrSiarohin/first-order-model +# Users should be careful about adopting these functions in any commercial matters. +# https://github.com/AliaksandrSiarohin/first-order-model/blob/master/LICENSE.md import paddle from paddle import nn diff --git a/ppgan/models/generators/wav2lip.py b/ppgan/models/generators/wav2lip.py index c4b9fc3c16d928398c449e6628a021693a82c3e1..7c62f783462f82ec101b7d0fc494553e7367a102 100644 --- a/ppgan/models/generators/wav2lip.py +++ b/ppgan/models/generators/wav2lip.py @@ -1,16 +1,6 @@ -# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. +# code was heavily based on https://github.com/Rudrabha/Wav2Lip +# Users should be careful about adopting these functions in any commercial matters. +# https://github.com/Rudrabha/Wav2Lip#license-and-citation import paddle from paddle import nn diff --git a/ppgan/modules/dense_motion.py b/ppgan/modules/dense_motion.py index 54222131b6b8529e772735cdd82e0a08371b2ca3..c90ab08dad9ead40201e07dcc222d08268941037 100644 --- a/ppgan/modules/dense_motion.py +++ b/ppgan/modules/dense_motion.py @@ -1,18 +1,6 @@ -# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. - # code was heavily based on https://github.com/AliaksandrSiarohin/first-order-model +# Users should be careful about adopting these functions in any commercial matters. +# https://github.com/AliaksandrSiarohin/first-order-model/blob/master/LICENSE.md import paddle import paddle.nn as nn diff --git a/ppgan/modules/first_order.py b/ppgan/modules/first_order.py index 0f71068d8cb72207cd76a1342d151ddc4b86845b..0d7b96b8659ddcf683002bf9a23e592dacafe5c6 100644 --- a/ppgan/modules/first_order.py +++ b/ppgan/modules/first_order.py @@ -1,18 +1,6 @@ -# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. - # code was heavily based on https://github.com/AliaksandrSiarohin/first-order-model +# Users should be careful about adopting these functions in any commercial matters. +# https://github.com/AliaksandrSiarohin/first-order-model/blob/master/LICENSE.md import paddle import paddle.nn as nn diff --git a/ppgan/modules/keypoint_detector.py b/ppgan/modules/keypoint_detector.py index 60d4e02224be830c537114aa7dbeb15a23fa69a7..1767ca37f6a645008ce41f22df3949c65c9dafb0 100644 --- a/ppgan/modules/keypoint_detector.py +++ b/ppgan/modules/keypoint_detector.py @@ -1,18 +1,6 @@ -# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. - # code was heavily based on https://github.com/AliaksandrSiarohin/first-order-model +# Users should be careful about adopting these functions in any commercial matters. +# https://github.com/AliaksandrSiarohin/first-order-model/blob/master/LICENSE.md import paddle import paddle.nn as nn