diff --git a/lib/data_loaders/DataLoader.py b/lib/data_loaders/DataLoader.py index 3903dbb29a9f2d00d2e4ad570c6e8336227f47c6..675f7157194d25ad57f0c6167d9e9678d012382d 100644 --- a/lib/data_loaders/DataLoader.py +++ b/lib/data_loaders/DataLoader.py @@ -1,3 +1,21 @@ +#!/usr/bin/env python +# Copyright (c) 2019 Idiap Research Institute, http://www.idiap.ch/ +# Written by Nam Le <nam.le@idiap.ch>, +# +# This file is part of unet.interspeech2019 package. +# +# unet.interspeech2019 is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 3 as +# published by the Free Software Foundation. +# +# unet.interspeech2019 is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with unet.interspeech2019. If not, see <http://www.gnu.org/licenses/>. + import collections import re import sys diff --git a/lib/data_loaders/VoxClsLoader.py b/lib/data_loaders/VoxClsLoader.py index 1d68161a62f9d7ae5d116b5c7cb5c7b95154cfa0..5ed4e2977ceacad92dd0cf85b554021d6d5b5372 100644 --- a/lib/data_loaders/VoxClsLoader.py +++ b/lib/data_loaders/VoxClsLoader.py @@ -1,3 +1,21 @@ +#!/usr/bin/env python +# Copyright (c) 2019 Idiap Research Institute, http://www.idiap.ch/ +# Written by Nam Le <nam.le@idiap.ch>, +# +# This file is part of unet.interspeech2019 package. +# +# unet.interspeech2019 is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 3 as +# published by the Free Software Foundation. +# +# unet.interspeech2019 is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with unet.interspeech2019. If not, see <http://www.gnu.org/licenses/>. + from __future__ import print_function import os import cPickle as pickle diff --git a/lib/feature_extractors/FeatureExtractor.py b/lib/feature_extractors/FeatureExtractor.py index b43a38302617b97c5edb21bbc240c1e3e3b91ea4..30998e49b54df82af99d6fa5be5377f0c64c33df 100644 --- a/lib/feature_extractors/FeatureExtractor.py +++ b/lib/feature_extractors/FeatureExtractor.py @@ -1,5 +1,20 @@ #!/usr/bin/env python - +# Copyright (c) 2019 Idiap Research Institute, http://www.idiap.ch/ +# Written by Nam Le <nam.le@idiap.ch>, +# +# This file is part of unet.interspeech2019 package. +# +# unet.interspeech2019 is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 3 as +# published by the Free Software Foundation. +# +# unet.interspeech2019 is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with unet.interspeech2019. If not, see <http://www.gnu.org/licenses/>. import os import json diff --git a/lib/feature_extractors/SpectrogramExtractor.py b/lib/feature_extractors/SpectrogramExtractor.py index a822ce9ee9405cbbab0dde25beebc666eaf023c0..77c186a4959304875f47edc658a2cf7bcf38cfb0 100644 --- a/lib/feature_extractors/SpectrogramExtractor.py +++ b/lib/feature_extractors/SpectrogramExtractor.py @@ -1,4 +1,20 @@ #!/usr/bin/env python +# Copyright (c) 2019 Idiap Research Institute, http://www.idiap.ch/ +# Written by Nam Le <nam.le@idiap.ch>, +# +# This file is part of unet.interspeech2019 package. +# +# unet.interspeech2019 is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 3 as +# published by the Free Software Foundation. +# +# unet.interspeech2019 is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with unet.interspeech2019. If not, see <http://www.gnu.org/licenses/>. import os import json diff --git a/lib/feature_extractors/spectrogram_utils.py b/lib/feature_extractors/spectrogram_utils.py index 0b4bcc67e5cad72b3813d0220c9fd1e1ff3a00a5..d61a83cbbacd6110da55355a9ec9c625c7f210b9 100644 --- a/lib/feature_extractors/spectrogram_utils.py +++ b/lib/feature_extractors/spectrogram_utils.py @@ -1,3 +1,21 @@ +#!/usr/bin/env python +# Copyright (c) 2019 Idiap Research Institute, http://www.idiap.ch/ +# Written by Seyyed Saeed Sarfjoo <saeed.sarfjoo@idiap.ch>, +# +# This file is part of unet.interspeech2019 package. +# +# unet.interspeech2019 is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 3 as +# published by the Free Software Foundation. +# +# unet.interspeech2019 is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with unet.interspeech2019. If not, see <http://www.gnu.org/licenses/>. + import os import math import numpy diff --git a/lib/tools/testing_tools.py b/lib/tools/testing_tools.py index 87b40c0be07cbdb859c593aaf02fb8616bd3a20f..ba0c8b701a9570d2e5e8b7454f1d8c7a6af73da8 100644 --- a/lib/tools/testing_tools.py +++ b/lib/tools/testing_tools.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python +# Copyright (c) 2019 Idiap Research Institute, http://www.idiap.ch/ +# Written by Nam Le <nam.le@idiap.ch>, +# Seyyed Saeed Sarfjoo <saeed.sarfjoo@idiap.ch> +# +# This file is part of unet.interspeech2019 package. +# +# unet.interspeech2019 is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 3 as +# published by the Free Software Foundation. +# +# unet.interspeech2019 is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with unet.interspeech2019. If not, see <http://www.gnu.org/licenses/>. + from __future__ import print_function from sklearn.metrics import roc_curve, roc_auc_score, accuracy_score diff --git a/lib/tools/utils.py b/lib/tools/utils.py index fff24d8bc797d8e8431f24e1a639e8b530f75caa..b039259cc93c06bf1602cd62e3808ddc0db43486 100644 --- a/lib/tools/utils.py +++ b/lib/tools/utils.py @@ -1,3 +1,21 @@ +#!/usr/bin/env python +# Copyright (c) 2019 Idiap Research Institute, http://www.idiap.ch/ +# Written by Nam Le <nam.le@idiap.ch>, +# +# This file is part of unet.interspeech2019 package. +# +# unet.interspeech2019 is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 3 as +# published by the Free Software Foundation. +# +# unet.interspeech2019 is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with unet.interspeech2019. If not, see <http://www.gnu.org/licenses/>. + from scipy.spatial.distance import euclidean from copy import deepcopy import os