NimaBoscarino commited on
Commit
4f463b1
1 Parent(s): 5de94d8

Update lila_camera_traps.py

Browse files
Files changed (1) hide show
  1. lila_camera_traps.py +13 -13
lila_camera_traps.py CHANGED
@@ -689,7 +689,7 @@ class LILA(datasets.GeneratorBasedBuilder):
689
  "taxonomy": _TAXONOMY,
690
  "bbox": datasets.Sequence(datasets.Value("float32")),
691
  }),
692
- "image": datasets.Image(decode=False),
693
  })
694
  elif self.config.name == 'ENA24':
695
  return datasets.Features({
@@ -699,7 +699,7 @@ class LILA(datasets.GeneratorBasedBuilder):
699
  "bbox": datasets.Sequence(datasets.Value("float32")),
700
  "taxonomy": _TAXONOMY,
701
  }),
702
- "image": datasets.Image(),
703
  })
704
  elif self.config.name == 'Missouri Camera Traps':
705
  return datasets.Features({
@@ -712,7 +712,7 @@ class LILA(datasets.GeneratorBasedBuilder):
712
  "bbox": datasets.Sequence(datasets.Value("float32")),
713
  "taxonomy": _TAXONOMY,
714
  }),
715
- "image": datasets.Image(),
716
  })
717
  elif self.config.name == 'NACTI':
718
  return datasets.Features({
@@ -725,7 +725,7 @@ class LILA(datasets.GeneratorBasedBuilder):
725
  "bboxes": datasets.Sequence({
726
  "bbox": datasets.Sequence(datasets.Value("float32")),
727
  }),
728
- "image": datasets.Image(),
729
  })
730
  elif self.config.name == 'WCS Camera Traps':
731
  return datasets.Features({
@@ -747,7 +747,7 @@ class LILA(datasets.GeneratorBasedBuilder):
747
  "bboxes": datasets.Sequence({
748
  "bbox": datasets.Sequence(datasets.Value("float32")),
749
  }),
750
- "image": datasets.Image(),
751
  })
752
  elif self.config.name == 'Wellington Camera Traps':
753
  return datasets.Features({
@@ -759,7 +759,7 @@ class LILA(datasets.GeneratorBasedBuilder):
759
  "annotations": datasets.Sequence({
760
  "taxonomy": _TAXONOMY,
761
  }),
762
- "image": datasets.Image(),
763
  })
764
  elif self.config.name == 'Island Conservation Camera Traps':
765
  return datasets.Features({
@@ -769,7 +769,7 @@ class LILA(datasets.GeneratorBasedBuilder):
769
  "bbox": datasets.Sequence(datasets.Value("float32")),
770
  "taxonomy": _TAXONOMY,
771
  }),
772
- "image": datasets.Image(),
773
  })
774
  elif self.config.name == 'Channel Islands Camera Traps':
775
  return datasets.Features({
@@ -785,7 +785,7 @@ class LILA(datasets.GeneratorBasedBuilder):
785
  "bbox": datasets.Sequence(datasets.Value("float32")),
786
  "taxonomy": _TAXONOMY,
787
  }),
788
- "image": datasets.Image(),
789
  })
790
  elif self.config.name == 'Idaho Camera Traps':
791
  return datasets.Features({
@@ -799,7 +799,7 @@ class LILA(datasets.GeneratorBasedBuilder):
799
  "sequence_level_annotation": datasets.Value("bool"),
800
  "taxonomy": _TAXONOMY,
801
  }),
802
- "image": datasets.Image(),
803
  })
804
  elif self.config.name == 'Snapshot Serengeti':
805
  return datasets.Features({
@@ -828,7 +828,7 @@ class LILA(datasets.GeneratorBasedBuilder):
828
  "bboxes": datasets.Sequence({
829
  "bbox": datasets.Sequence(datasets.Value("float32")),
830
  }),
831
- "image": datasets.Image(),
832
  })
833
  elif self.config.name in [
834
  'Snapshot Karoo', 'Snapshot Kgalagadi', 'Snapshot Enonkishu', 'Snapshot Camdeboo',
@@ -857,7 +857,7 @@ class LILA(datasets.GeneratorBasedBuilder):
857
  "location": datasets.Value("string"),
858
  "taxonomy": _TAXONOMY,
859
  }),
860
- "image": datasets.Image(),
861
  })
862
  elif self.config.name == 'SWG Camera Traps':
863
  return datasets.Features({
@@ -878,7 +878,7 @@ class LILA(datasets.GeneratorBasedBuilder):
878
  "bbox": datasets.Sequence(datasets.Value("float32")),
879
  "taxonomy": _TAXONOMY,
880
  }),
881
- "image": datasets.Image(),
882
  })
883
  elif self.config.name == 'Orinoquia Camera Traps':
884
  return datasets.Features({
@@ -890,7 +890,7 @@ class LILA(datasets.GeneratorBasedBuilder):
890
  "sequence_level_annotation": datasets.Value("bool"),
891
  "taxonomy": _TAXONOMY,
892
  }),
893
- "image": datasets.Image(),
894
  })
895
 
896
  def _info(self):
 
689
  "taxonomy": _TAXONOMY,
690
  "bbox": datasets.Sequence(datasets.Value("float32")),
691
  }),
692
+ "image": datasets.Value("string"),
693
  })
694
  elif self.config.name == 'ENA24':
695
  return datasets.Features({
 
699
  "bbox": datasets.Sequence(datasets.Value("float32")),
700
  "taxonomy": _TAXONOMY,
701
  }),
702
+ "image": datasets.Value("string"),
703
  })
704
  elif self.config.name == 'Missouri Camera Traps':
705
  return datasets.Features({
 
712
  "bbox": datasets.Sequence(datasets.Value("float32")),
713
  "taxonomy": _TAXONOMY,
714
  }),
715
+ "image": datasets.Value("string"),
716
  })
717
  elif self.config.name == 'NACTI':
718
  return datasets.Features({
 
725
  "bboxes": datasets.Sequence({
726
  "bbox": datasets.Sequence(datasets.Value("float32")),
727
  }),
728
+ "image": datasets.Value("string"),
729
  })
730
  elif self.config.name == 'WCS Camera Traps':
731
  return datasets.Features({
 
747
  "bboxes": datasets.Sequence({
748
  "bbox": datasets.Sequence(datasets.Value("float32")),
749
  }),
750
+ "image": datasets.Value("string"),
751
  })
752
  elif self.config.name == 'Wellington Camera Traps':
753
  return datasets.Features({
 
759
  "annotations": datasets.Sequence({
760
  "taxonomy": _TAXONOMY,
761
  }),
762
+ "image": datasets.Value("string"),
763
  })
764
  elif self.config.name == 'Island Conservation Camera Traps':
765
  return datasets.Features({
 
769
  "bbox": datasets.Sequence(datasets.Value("float32")),
770
  "taxonomy": _TAXONOMY,
771
  }),
772
+ "image": datasets.Value("string"),
773
  })
774
  elif self.config.name == 'Channel Islands Camera Traps':
775
  return datasets.Features({
 
785
  "bbox": datasets.Sequence(datasets.Value("float32")),
786
  "taxonomy": _TAXONOMY,
787
  }),
788
+ "image": datasets.Value("string"),
789
  })
790
  elif self.config.name == 'Idaho Camera Traps':
791
  return datasets.Features({
 
799
  "sequence_level_annotation": datasets.Value("bool"),
800
  "taxonomy": _TAXONOMY,
801
  }),
802
+ "image": datasets.Value("string"),
803
  })
804
  elif self.config.name == 'Snapshot Serengeti':
805
  return datasets.Features({
 
828
  "bboxes": datasets.Sequence({
829
  "bbox": datasets.Sequence(datasets.Value("float32")),
830
  }),
831
+ "image": datasets.Value("string"),
832
  })
833
  elif self.config.name in [
834
  'Snapshot Karoo', 'Snapshot Kgalagadi', 'Snapshot Enonkishu', 'Snapshot Camdeboo',
 
857
  "location": datasets.Value("string"),
858
  "taxonomy": _TAXONOMY,
859
  }),
860
+ "image": datasets.Value("string"),
861
  })
862
  elif self.config.name == 'SWG Camera Traps':
863
  return datasets.Features({
 
878
  "bbox": datasets.Sequence(datasets.Value("float32")),
879
  "taxonomy": _TAXONOMY,
880
  }),
881
+ "image": datasets.Value("string"),
882
  })
883
  elif self.config.name == 'Orinoquia Camera Traps':
884
  return datasets.Features({
 
890
  "sequence_level_annotation": datasets.Value("bool"),
891
  "taxonomy": _TAXONOMY,
892
  }),
893
+ "image": datasets.Value("string"),
894
  })
895
 
896
  def _info(self):