diff --git a/README.md b/README.md index 41fe5579ba572..00315532aca01 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,7 @@ GAN--生成对抗网络,被“卷积网络之父”**Yann LeCun(杨立昆)
+ ### PaddleGAN 特别兴趣小组(Special Interest Group) 最早于1961年被[ACM(Association for Computing Machinery)](https://en.wikipedia.org/wiki/Association_for_Computing_Machinery)首次提出并使用,国际顶尖开源组织包括[Kubernates](https://kubernetes.io/)都采用SIGs的形式,使拥有同样特定兴趣的成员可以共同分享、学习知识并进行项目开发。这些成员不需要在同一国家/地区、同一个组织,只要大家志同道合,都可以奔着相同的目标一同学习、工作、玩耍~ diff --git a/docs/en_US/data_prepare.md b/docs/en_US/data_prepare.md index 0cda69a07906a..7fde7c98b1d3e 100644 --- a/docs/en_US/data_prepare.md +++ b/docs/en_US/data_prepare.md @@ -90,3 +90,5 @@ facades ├── train └── val ``` + +![](../imgs/1.jpg) diff --git a/docs/imgs/1.jpg b/docs/imgs/1.jpg new file mode 100755 index 0000000000000..b88704f656a9e Binary files /dev/null and b/docs/imgs/1.jpg differ diff --git a/docs/zh_CN/data_prepare.md b/docs/zh_CN/data_prepare.md index 4602d75e457e7..3b461389a4487 100644 --- a/docs/zh_CN/data_prepare.md +++ b/docs/zh_CN/data_prepare.md @@ -92,3 +92,5 @@ facades ├── train └── val ``` + +![](../imgs/1.jpg) diff --git a/ppgan/__init__.py b/ppgan/__init__.py new file mode 100644 index 0000000000000..9e83ec486fc62 --- /dev/null +++ b/ppgan/__init__.py @@ -0,0 +1,13 @@ +# 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. diff --git a/ppgan/engine/__init__.py b/ppgan/engine/__init__.py new file mode 100644 index 0000000000000..9e83ec486fc62 --- /dev/null +++ b/ppgan/engine/__init__.py @@ -0,0 +1,13 @@ +# 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. diff --git a/ppgan/faceutils/dlibutils/dlib_utils.py b/ppgan/faceutils/dlibutils/dlib_utils.py index 5be958af7949e..0554198d17e2f 100644 --- a/ppgan/faceutils/dlibutils/dlib_utils.py +++ b/ppgan/faceutils/dlibutils/dlib_utils.py @@ -19,10 +19,17 @@ import dlib import cv2 from ..image import resize_by_max +from ppgan.utils.logger import get_logger +logger = get_logger() detector = dlib.get_frontal_face_detector() -predictor = dlib.shape_predictor( - osp.split(osp.realpath(__file__))[0] + '/lms.dat') + +try: + predictor = dlib.shape_predictor( + osp.split(osp.realpath(__file__))[0] + '/lms.dat') +except Exception as e: + predictor = None + logger.warning(e) def detect(image: Image): diff --git a/ppgan/metric/__init__.py b/ppgan/metric/__init__.py new file mode 100644 index 0000000000000..9e83ec486fc62 --- /dev/null +++ b/ppgan/metric/__init__.py @@ -0,0 +1,13 @@ +# 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. diff --git a/ppgan/modules/__init__.py b/ppgan/modules/__init__.py new file mode 100644 index 0000000000000..9e83ec486fc62 --- /dev/null +++ b/ppgan/modules/__init__.py @@ -0,0 +1,13 @@ +# 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. diff --git a/ppgan/utils/__init__.py b/ppgan/utils/__init__.py new file mode 100644 index 0000000000000..9e83ec486fc62 --- /dev/null +++ b/ppgan/utils/__init__.py @@ -0,0 +1,13 @@ +# 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.