From ea498a0968b791adaaeaf0fbcfd194f31846ba76 Mon Sep 17 00:00:00 2001
From: Laurent COLBOIS <laurent.colbois@idiap.ch>
Date: Fri, 9 Jul 2021 16:46:21 +0200
Subject: [PATCH] Add license headers

---
 .../generate/__init__.py                         |  6 +++++-
 .../generate/db_generator.py                     |  5 +++++
 .../generate/face_wrapper.py                     |  5 +++++
 .../latent/analysis.py                           |  5 +++++
 .../ijcb2021_synthetic_dataset/latent/editing.py |  5 +++++
 .../script/compute_latent_directions.py          |  5 +++++
 .../script/generate_db.py                        |  5 +++++
 .../script/project_db.py                         |  5 +++++
 .../stylegan2/generator.py                       |  5 +++++
 .../stylegan2/preprocessor.py                    | 16 +++++++++++++++-
 .../ijcb2021_synthetic_dataset/utils/__init__.py |  6 ++++++
 .../ijcb2021_synthetic_dataset/utils/download.py |  6 ++++++
 .../ijcb2021_synthetic_dataset/utils/plotting.py |  5 +++++
 13 files changed, 77 insertions(+), 2 deletions(-)

diff --git a/bob/paper/ijcb2021_synthetic_dataset/generate/__init__.py b/bob/paper/ijcb2021_synthetic_dataset/generate/__init__.py
index 8b6b33c..8597d8c 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/generate/__init__.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/generate/__init__.py
@@ -1,4 +1,8 @@
-
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 import numpy as np
 from pkgutil import extend_path
 __path__ = extend_path(__path__, __name__)
diff --git a/bob/paper/ijcb2021_synthetic_dataset/generate/db_generator.py b/bob/paper/ijcb2021_synthetic_dataset/generate/db_generator.py
index 0ed5bf4..da3c2f6 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/generate/db_generator.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/generate/db_generator.py
@@ -1,3 +1,8 @@
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a Non-Commercial Reserach and Educational Use Only license.
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 import os
 import h5py
 import numpy as np
diff --git a/bob/paper/ijcb2021_synthetic_dataset/generate/face_wrapper.py b/bob/paper/ijcb2021_synthetic_dataset/generate/face_wrapper.py
index 6d34f1b..4bb575b 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/generate/face_wrapper.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/generate/face_wrapper.py
@@ -1,3 +1,8 @@
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 import os
 import numpy as np
 from scipy.spatial.distance import cosine as cosine_dist
diff --git a/bob/paper/ijcb2021_synthetic_dataset/latent/analysis.py b/bob/paper/ijcb2021_synthetic_dataset/latent/analysis.py
index 632311c..dee6bd0 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/latent/analysis.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/latent/analysis.py
@@ -1,3 +1,8 @@
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 from bob.extension import rc
 from bob.db.multipie import Database as Multipie
 import os
diff --git a/bob/paper/ijcb2021_synthetic_dataset/latent/editing.py b/bob/paper/ijcb2021_synthetic_dataset/latent/editing.py
index 9edb814..d44c070 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/latent/editing.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/latent/editing.py
@@ -1,3 +1,8 @@
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 import numpy as np
 
 LATENT_DIM = 512
diff --git a/bob/paper/ijcb2021_synthetic_dataset/script/compute_latent_directions.py b/bob/paper/ijcb2021_synthetic_dataset/script/compute_latent_directions.py
index b5d4f30..e180d31 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/script/compute_latent_directions.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/script/compute_latent_directions.py
@@ -1,3 +1,8 @@
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 import os
 from bob.extension import rc
 import click
diff --git a/bob/paper/ijcb2021_synthetic_dataset/script/generate_db.py b/bob/paper/ijcb2021_synthetic_dataset/script/generate_db.py
index 9ae0e01..5b50b16 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/script/generate_db.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/script/generate_db.py
@@ -1,3 +1,8 @@
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 from bob.extension import rc
 from bob.bio.face.preprocessor import FaceCrop
 from bob.bio.face_ongoing.configs.baselines.msceleb.inception_resnet_v2.centerloss_rgb import extractor
diff --git a/bob/paper/ijcb2021_synthetic_dataset/script/project_db.py b/bob/paper/ijcb2021_synthetic_dataset/script/project_db.py
index e550cc6..fc8857a 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/script/project_db.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/script/project_db.py
@@ -1,3 +1,8 @@
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 import os
 import click
 
diff --git a/bob/paper/ijcb2021_synthetic_dataset/stylegan2/generator.py b/bob/paper/ijcb2021_synthetic_dataset/stylegan2/generator.py
index 0232f36..27802f0 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/stylegan2/generator.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/stylegan2/generator.py
@@ -1,3 +1,8 @@
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 from . import dnnlib
 from .dnnlib import tflib
 from .. import utils
diff --git a/bob/paper/ijcb2021_synthetic_dataset/stylegan2/preprocessor.py b/bob/paper/ijcb2021_synthetic_dataset/stylegan2/preprocessor.py
index fc22323..1390429 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/stylegan2/preprocessor.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/stylegan2/preprocessor.py
@@ -1,3 +1,8 @@
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 import dlib
 import PIL.Image
 import bob.io.image
@@ -49,7 +54,16 @@ class FFHQCropper(object):
         
         This code was entirely borrowed from
         https://github.com/NVlabs/ffhq-dataset/blob/master/download_ffhq.py (recreate_aligned_images() function),
-        with a few adaptations.
+        with a few adaptations. 
+
+        License disclaimer:
+        # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
+        #
+        # This work is licensed under the Creative Commons
+        # Attribution-NonCommercial-ShareAlike 4.0 International License.
+        # To view a copy of this license, visit
+        # http://creativecommons.org/licenses/by-nc-sa/4.0/ or send a letter to
+        # Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
         
         """
         lm = np.array(lm)
diff --git a/bob/paper/ijcb2021_synthetic_dataset/utils/__init__.py b/bob/paper/ijcb2021_synthetic_dataset/utils/__init__.py
index 5088ea4..bc83dce 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/utils/__init__.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/utils/__init__.py
@@ -1,3 +1,9 @@
+
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 from pkgutil import extend_path
 __path__ = extend_path(__path__, __name__)
 import numpy as np
diff --git a/bob/paper/ijcb2021_synthetic_dataset/utils/download.py b/bob/paper/ijcb2021_synthetic_dataset/utils/download.py
index 6be8035..2462c96 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/utils/download.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/utils/download.py
@@ -1,3 +1,9 @@
+
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 import os
 import urllib.request
 import bz2
diff --git a/bob/paper/ijcb2021_synthetic_dataset/utils/plotting.py b/bob/paper/ijcb2021_synthetic_dataset/utils/plotting.py
index efffdca..43adb3b 100644
--- a/bob/paper/ijcb2021_synthetic_dataset/utils/plotting.py
+++ b/bob/paper/ijcb2021_synthetic_dataset/utils/plotting.py
@@ -1,3 +1,8 @@
+# Copyright (c) 2021, Idiap Research Institute. All rights reserved.
+#
+# This work is made available under a custom license, Non-Commercial Research and Educational Use Only 
+# To view a copy of this license, visit
+# https://gitlab.idiap.ch/bob/bob.paper.ijcb2021_synthetic_dataset/-/blob/master/LICENSE.txt
 import matplotlib.pyplot as plt
 import bob.io.image
 import numpy as np
-- 
GitLab