From 52d537cd4679a089721f2e9450c09b7f4cf1bc6b Mon Sep 17 00:00:00 2001
From: Tiago Freitas Pereira <tiagofrepereira@gmail.com>
Date: Wed, 2 Jun 2021 16:53:33 +0200
Subject: [PATCH] Updated 50 shades examples

---
 notebooks/50-shades-of-face.ipynb | 39 +++++--------------------------
 1 file changed, 6 insertions(+), 33 deletions(-)

diff --git a/notebooks/50-shades-of-face.ipynb b/notebooks/50-shades-of-face.ipynb
index 0e987722..2a99754a 100644
--- a/notebooks/50-shades-of-face.ipynb
+++ b/notebooks/50-shades-of-face.ipynb
@@ -21,11 +21,10 @@
     "from bob.bio.base.pipelines.vanilla_biometrics import execute_vanilla_biometrics\n",
     "from bob.bio.base.pipelines.vanilla_biometrics import Distance\n",
     "from bob.bio.base.pipelines.vanilla_biometrics import VanillaBiometricsPipeline\n",
-    "\n",
-    "from bob.bio.face.database import MobioDatabase\n",
+    "from bob.pipelines import wrap\n",
     "from bob.bio.face.preprocessor import FaceCrop\n",
+    "from bob.bio.face.database import MobioDatabase\n",
     "from bob.extension import rc\n",
-    "from bob.pipelines import wrap\n",
     "import os\n",
     "import scipy.spatial\n",
     "import bob.measure\n",
@@ -47,8 +46,8 @@
     "\n",
     "\n",
     "######## CHANGE YOUR FEATURE EXTRACTOR HERE\n",
-    "from bob.bio.face.embeddings.mxnet_models import ArcFaceInsightFace\n",
-    "extractor_transformer = wrap([\"sample\"],ArcFaceInsightFace())\n",
+    "from bob.bio.face.embeddings.mxnet import ArcFaceInsightFace_LResNet100\n",
+    "extractor_transformer = wrap([\"sample\"],ArcFaceInsightFace_LResNet100())\n",
     "\n",
     "### CHANGE YOUR MATCHER HERE\n",
     "algorithm = Distance(distance_function = scipy.spatial.distance.cosine,is_distance_function = True)\n",
@@ -106,7 +105,7 @@
     {
      "data": {
       "application/vnd.jupyter.widget-view+json": {
-       "model_id": "365e408f16e04de7ba0f709639b4ee8d",
+       "model_id": "4f9fcc28865e4adaa6c989831f773b0c",
        "version_major": 2,
        "version_minor": 0
       },
@@ -220,32 +219,6 @@
      "name": "stderr",
      "output_type": "stream",
      "text": [
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
-      "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
       "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
       "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
       "There's no data to train background model.For the rest of the execution it will be assumed that the pipeline is stateless.\n",
@@ -255,7 +228,7 @@
     {
      "data": {
       "application/vnd.jupyter.widget-view+json": {
-       "model_id": "6556949a548c4f1da86073f0a9351109",
+       "model_id": "3d36c081e56c4d93b3351b82209a8fb7",
        "version_major": 2,
        "version_minor": 0
       },
-- 
GitLab