diff --git a/README.md b/README.md index 41fe5579ba572695229cf0ef6a60fb7e648c0330..00315532aca018bbe65e6f178e112d65efca49f0 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 0cda69a07906aab343168e01b88bcb4a6895bc9d..7fde7c98b1d3e53df2547b85d2b5028695e98c65 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 0000000000000000000000000000000000000000..b88704f656a9e80f2fb9eb88ac3bc768a0e37db5 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 4602d75e457e7ab83231bd0795910764c6b677e9..3b461389a4487f5f980d48356bdcafd649683e67 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 0000000000000000000000000000000000000000..9e83ec486fc6232d90d965425588645bc1204386 --- /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 0000000000000000000000000000000000000000..9e83ec486fc6232d90d965425588645bc1204386 --- /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 5be958af7949e0bcc2fc4795e13a0e28039d8e58..0554198d17e2f9a9aaa62ee0d6296cd14ceee57e 100644 --- a/ppgan/faceutils/dlibutils/dlib_utils.py +++ b/ppgan/faceutils/dlibutils/dlib_utils.py @@ -19,10 +19,17 @@ from PIL import Image 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 0000000000000000000000000000000000000000..9e83ec486fc6232d90d965425588645bc1204386 --- /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 0000000000000000000000000000000000000000..9e83ec486fc6232d90d965425588645bc1204386 --- /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 0000000000000000000000000000000000000000..9e83ec486fc6232d90d965425588645bc1204386 --- /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.