From 5d76cb4100587b150063ea2671130048970fc7d0 Mon Sep 17 00:00:00 2001 From: lzzyzlbb <287246233@qq.com> Date: Thu, 4 Nov 2021 21:23:39 +0800 Subject: [PATCH] Fix copyright (#459) * fix benchmark * add fomm and stylegan benchmark * fix version of imageio * add copyright of psgan, test=document_fix --- ppgan/faceutils/dlibutils/dlib_utils.py | 16 +++------------- ppgan/faceutils/mask/face_parser.py | 17 ++++------------- ppgan/faceutils/mask/model.py | 17 ++++------------- ppgan/models/discriminators/nlayers.py | 4 ++++ ppgan/models/generators/makeup.py | 4 ++++ ppgan/models/makeup_model.py | 5 +++++ ppgan/utils/preprocess.py | 16 +++------------- 7 files changed, 27 insertions(+), 52 deletions(-) diff --git a/ppgan/faceutils/dlibutils/dlib_utils.py b/ppgan/faceutils/dlibutils/dlib_utils.py index 665276d..3cfff09 100644 --- a/ppgan/faceutils/dlibutils/dlib_utils.py +++ b/ppgan/faceutils/dlibutils/dlib_utils.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/wtjiang98/PSGAN +# MIT License +# Copyright (c) 2020 Wentao Jiang import os import os.path as osp diff --git a/ppgan/faceutils/mask/face_parser.py b/ppgan/faceutils/mask/face_parser.py index 38dd9a4..c017019 100644 --- a/ppgan/faceutils/mask/face_parser.py +++ b/ppgan/faceutils/mask/face_parser.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/wtjiang98/PSGAN +# MIT License +# Copyright (c) 2020 Wentao Jiang + import os.path as osp diff --git a/ppgan/faceutils/mask/model.py b/ppgan/faceutils/mask/model.py index a61f797..9bb6294 100644 --- a/ppgan/faceutils/mask/model.py +++ b/ppgan/faceutils/mask/model.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/wtjiang98/PSGAN +# MIT License +# Copyright (c) 2020 Wentao Jiang + import paddle import paddle.nn as nn diff --git a/ppgan/models/discriminators/nlayers.py b/ppgan/models/discriminators/nlayers.py index 938b1f4..2d8f4d4 100644 --- a/ppgan/models/discriminators/nlayers.py +++ b/ppgan/models/discriminators/nlayers.py @@ -12,6 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +# code was heavily based on https://github.com/wtjiang98/PSGAN +# MIT License +# Copyright (c) 2020 Wentao Jiang + import paddle import functools import numpy as np diff --git a/ppgan/models/generators/makeup.py b/ppgan/models/generators/makeup.py index 5f80ae4..4ac8178 100644 --- a/ppgan/models/generators/makeup.py +++ b/ppgan/models/generators/makeup.py @@ -12,6 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +# code was heavily based on https://github.com/wtjiang98/PSGAN +# MIT License +# Copyright (c) 2020 Wentao Jiang + import paddle import paddle.nn as nn import paddle.nn.functional as F diff --git a/ppgan/models/makeup_model.py b/ppgan/models/makeup_model.py index c7cb987..63868cb 100644 --- a/ppgan/models/makeup_model.py +++ b/ppgan/models/makeup_model.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. + +# code was heavily based on https://github.com/wtjiang98/PSGAN +# MIT License +# Copyright (c) 2020 Wentao Jiang + import os import numpy as np diff --git a/ppgan/utils/preprocess.py b/ppgan/utils/preprocess.py index 10613c7..28fc34d 100644 --- a/ppgan/utils/preprocess.py +++ b/ppgan/utils/preprocess.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/wtjiang98/PSGAN +# MIT License +# Copyright (c) 2020 Wentao Jiang import cv2 import numpy as np -- GitLab