Skip to content
Snippets Groups Projects
Commit 62972b73 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Fixed MEDS and MORPH annotations

parent e418418d
1 merge request!100Resolve "EyesAnnotations ordering of x & y coordinates is wrong"
Pipeline #47839 failed
...@@ -97,7 +97,9 @@ class MEDSDatabase(CSVDatasetZTNorm): ...@@ -97,7 +97,9 @@ class MEDSDatabase(CSVDatasetZTNorm):
# Downloading model if not exists # Downloading model if not exists
urls = MEDSDatabase.urls() urls = MEDSDatabase.urls()
filename = get_file("meds.tar.gz", urls) filename = get_file(
"meds.tar.gz", urls, file_hash="3b01354d4c170672ac14120b80dace75"
)
self.annotation_type = "eyes-center" self.annotation_type = "eyes-center"
self.fixed_positions = None self.fixed_positions = None
...@@ -122,6 +124,6 @@ class MEDSDatabase(CSVDatasetZTNorm): ...@@ -122,6 +124,6 @@ class MEDSDatabase(CSVDatasetZTNorm):
@staticmethod @staticmethod
def urls(): def urls():
return [ return [
"https://www.idiap.ch/software/bob/databases/latest/meds.tar.gz", "https://www.idiap.ch/software/bob/databases/latest/meds_v2.tar.gz",
"http://www.idiap.ch/software/bob/databases/latest/meds.tar.gz", "http://www.idiap.ch/software/bob/databases/latest/meds_v2.tar.gz",
] ]
...@@ -61,7 +61,9 @@ class MorphDatabase(CSVDatasetZTNorm): ...@@ -61,7 +61,9 @@ class MorphDatabase(CSVDatasetZTNorm):
# Downloading model if not exists # Downloading model if not exists
urls = MorphDatabase.urls() urls = MorphDatabase.urls()
filename = get_file("morph.tar.gz", urls) filename = get_file(
"morph.tar.gz", urls, file_hash="9efa1ff13ef6984ebfcf86f1b1f58873"
)
self.annotation_type = "eyes-center" self.annotation_type = "eyes-center"
self.fixed_positions = None self.fixed_positions = None
...@@ -86,6 +88,6 @@ class MorphDatabase(CSVDatasetZTNorm): ...@@ -86,6 +88,6 @@ class MorphDatabase(CSVDatasetZTNorm):
@staticmethod @staticmethod
def urls(): def urls():
return [ return [
"https://www.idiap.ch/software/bob/databases/latest/morph.tar.gz", "https://www.idiap.ch/software/bob/databases/latest/morph_v2.tar.gz",
"http://www.idiap.ch/software/bob/databases/latest/morph.tar.gz", "http://www.idiap.ch/software/bob/databases/latest/morph_v2.tar.gz",
] ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment