Commit 33d75dc8 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Updated DB interface

parent 288c6a8f
Pipeline #51451 passed with stage
in 64 minutes and 26 seconds
...@@ -126,11 +126,10 @@ class CasiaAfricaDatabase(CSVDataset): ...@@ -126,11 +126,10 @@ class CasiaAfricaDatabase(CSVDataset):
), ),
EyesAnnotations(), EyesAnnotations(),
), ),
annotation_type=annotation_type,
fixed_positions=fixed_positions,
) )
self.annotation_type = annotation_type
self.fixed_positions = fixed_positions
@staticmethod @staticmethod
def protocols(): def protocols():
# TODO: Until we have (if we have) a function that dumps the protocols, let's use this one. # TODO: Until we have (if we have) a function that dumps the protocols, let's use this one.
......
...@@ -90,9 +90,9 @@ class CBSRNirVis2Database(CSVDataset): ...@@ -90,9 +90,9 @@ class CBSRNirVis2Database(CSVDataset):
), ),
EyesAnnotations(), EyesAnnotations(),
), ),
annotation_type=annotation_type,
fixed_positions=fixed_positions,
) )
self.annotation_type = annotation_type
self.fixed_positions = fixed_positions
@staticmethod @staticmethod
def protocols(): def protocols():
......
...@@ -42,11 +42,10 @@ class FRGCDatabase(CSVDataset): ...@@ -42,11 +42,10 @@ class FRGCDatabase(CSVDataset):
), ),
EyesAnnotations(), EyesAnnotations(),
), ),
annotation_type=annotation_type,
fixed_positions=fixed_positions,
) )
self.annotation_type = annotation_type
self.fixed_positions = fixed_positions
@staticmethod @staticmethod
def protocols(): def protocols():
# TODO: Until we have (if we have) a function that dumps the protocols, let's use this one. # TODO: Until we have (if we have) a function that dumps the protocols, let's use this one.
......
...@@ -115,11 +115,10 @@ class MEDSDatabase(CSVDatasetZTNorm): ...@@ -115,11 +115,10 @@ class MEDSDatabase(CSVDatasetZTNorm):
), ),
EyesAnnotations(), EyesAnnotations(),
), ),
annotation_type=annotation_type,
fixed_positions=fixed_positions,
) )
self.annotation_type = annotation_type
self.fixed_positions = fixed_positions
@staticmethod @staticmethod
def urls(): def urls():
return [ return [
......
...@@ -70,9 +70,9 @@ class MobioDatabase(CSVDatasetZTNorm): ...@@ -70,9 +70,9 @@ class MobioDatabase(CSVDatasetZTNorm):
), ),
EyesAnnotations(), EyesAnnotations(),
), ),
annotation_type=annotation_type,
fixed_positions=fixed_positions,
) )
self.annotation_type = annotation_type
self.fixed_positions = fixed_positions
@staticmethod @staticmethod
def protocols(): def protocols():
......
...@@ -79,11 +79,10 @@ class MorphDatabase(CSVDatasetZTNorm): ...@@ -79,11 +79,10 @@ class MorphDatabase(CSVDatasetZTNorm):
), ),
EyesAnnotations(), EyesAnnotations(),
), ),
annotation_type=annotation_type,
fixed_positions=fixed_positions,
) )
self.annotation_type = annotation_type
self.fixed_positions = fixed_positions
@staticmethod @staticmethod
def urls(): def urls():
return [ return [
......
...@@ -108,11 +108,10 @@ class MultipieDatabase(CSVDataset): ...@@ -108,11 +108,10 @@ class MultipieDatabase(CSVDataset):
), ),
MultiposeAnnotations(), MultiposeAnnotations(),
), ),
annotation_type=["eyes-center", "left-profile", "right-profile"],
fixed_positions=None,
) )
self.annotation_type = ["eyes-center", "left-profile", "right-profile"]
self.fixed_positions = None
@staticmethod @staticmethod
def protocols(): def protocols():
# TODO: Until we have (if we have) a function that dumps the protocols, let's use this one. # TODO: Until we have (if we have) a function that dumps the protocols, let's use this one.
......
...@@ -111,11 +111,10 @@ class PolaThermalDatabase(CSVDataset): ...@@ -111,11 +111,10 @@ class PolaThermalDatabase(CSVDataset):
), ),
EyesAnnotations(), EyesAnnotations(),
), ),
annotation_type=annotation_type,
fixed_positions=fixed_positions,
) )
self.annotation_type = annotation_type
self.fixed_positions = fixed_positions
@staticmethod @staticmethod
def protocols(): def protocols():
# TODO: Until we have (if we have) a function that dumps the protocols, let's use this one. # TODO: Until we have (if we have) a function that dumps the protocols, let's use this one.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment