Skip to content

Commit a56c51d

Browse files
Rabah Abdul KhalekRabah Abdul Khalek
authored andcommitted
updated notebooks
1 parent 33d8b0b commit a56c51d

File tree

5 files changed

+15
-156
lines changed

5 files changed

+15
-156
lines changed

‎examples/landmark_detection/criterias/criteria1_partial_faces.ipynb‎

Lines changed: 9 additions & 150 deletions
Large diffs are not rendered by default.

‎examples/landmark_detection/features/ex1_draw_landmarks.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"\n",
2020
"import torch\n",
2121
"from giskard_vision.landmark_detection.tests.performance import NMEMean, NMEs, Es, MEMean, MEStd, NMEMean, NMEStd\n",
22-
"from giskard_vision.landmark_detection.models.wrappers import FaceAlignmentWrapper"
22+
"from giskard_vision.landmark_detection.models.wrappers import OpenCVWrapper "
2323
]
2424
},
2525
{
@@ -94,7 +94,7 @@
9494
},
9595
"outputs": [],
9696
"source": [
97-
"model = FaceAlignmentWrapper(model=FaceAlignment(LandmarksType.TWO_D, device=\"cpu\", flip_input=False))"
97+
"model = OpenCVWrapper() #FaceAlignmentWrapper(model=FaceAlignment(LandmarksType.TWO_D, device=\"cpu\", flip_input=False))"
9898
]
9999
},
100100
{

‎examples/landmark_detection/features/ex4_tests_and_metrics.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"from giskard_vision.landmark_detection.tests.performance import NMEMean\n",
2020
"from giskard_vision.landmark_detection.tests.base import Test, TestDiff\n",
2121
"from giskard_vision.landmark_detection.marks.facial_parts import FacialParts\n",
22-
"from giskard_vision.landmark_detection.models.wrappers import FaceAlignmentWrapper\n",
22+
"from giskard_vision.landmark_detection.models.wrappers import OpenCVWrapper\n",
2323
"from giskard_vision.landmark_detection.tests.base import Test, TestDiff"
2424
]
2525
},
@@ -95,7 +95,7 @@
9595
},
9696
"outputs": [],
9797
"source": [
98-
"model = FaceAlignmentWrapper(model=FaceAlignment(LandmarksType.TWO_D, device=device, flip_input=False))"
98+
"model = OpenCVWrapper() # FaceAlignmentWrapper(model=FaceAlignment(LandmarksType.TWO_D, device=device, flip_input=False))"
9999
]
100100
},
101101
{

‎examples/landmark_detection/report/master.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
],
7676
"source": [
7777
"models = {\n",
78-
" \"FaceAlignment\": FaceAlignmentWrapper(model=FaceAlignment(LandmarksType.TWO_D, device=\"cpu\", flip_input=False)),\n",
78+
" \"FaceAlignment\": FaceAlignmentWrapper(model=FaceAlignment(LandmarksType.TWO_D, device=\"cpu\", flip_input=False, face_detector=\"blazeface\")),\n",
7979
" \"OpenCV\": OpenCVWrapper(),\n",
8080
"}\n",
8181
"# models.pop(\"FaceAlignment\") # takes a long time"

‎examples/landmark_detection/report/report.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
],
122122
"source": [
123123
"models_list = [\n",
124-
" FaceAlignmentWrapper(model=FaceAlignment(LandmarksType.TWO_D, device=\"cpu\", flip_input=False)),\n",
124+
" FaceAlignmentWrapper(model=FaceAlignment(LandmarksType.TWO_D, device=\"cpu\", flip_input=False, face_detector=\"blazeface\")),\n",
125125
" OpenCVWrapper(),\n",
126126
"]\n",
127127
"\n",

0 commit comments

Comments
 (0)