Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#298 Feature/sg 171 make coco inherit from detection dataset

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-171-Make_coco_inherit_from_detection_dataset
@@ -55,7 +55,7 @@ class TestDetectionDatasetCaching(unittest.TestCase):
 
 
         datasets = [
         datasets = [
             DummyDetectionDataset(input_dim=(640, 512), ignore_empty_annotations=False, class_inclusion_list=class_inclusion_list,
             DummyDetectionDataset(input_dim=(640, 512), ignore_empty_annotations=False, class_inclusion_list=class_inclusion_list,
-                                  cache=True, cache_path=self.temp_cache_dir, data_dir='/home/')
+                                  cache=True, cache_dir=self.temp_cache_dir, data_dir='/home/')
             for class_inclusion_list in [["class_0", "class_1", "class_2"], ["class_0"], ["class_1"], ["class_2"], ["class_1", "class_2"]]
             for class_inclusion_list in [["class_0", "class_1", "class_2"], ["class_0"], ["class_1"], ["class_2"], ["class_1", "class_2"]]
         ]
         ]
 
 
@@ -70,7 +70,7 @@ class TestDetectionDatasetCaching(unittest.TestCase):
 
 
         datasets = [
         datasets = [
             DummyDetectionDataset(input_dim=(640, 512), ignore_empty_annotations=True, class_inclusion_list=class_inclusion_list,
             DummyDetectionDataset(input_dim=(640, 512), ignore_empty_annotations=True, class_inclusion_list=class_inclusion_list,
-                                  cache=True, cache_path=self.temp_cache_dir, data_dir='/home/')
+                                  cache=True, cache_dir=self.temp_cache_dir, data_dir='/home/')
             for class_inclusion_list in [["class_0", "class_1", "class_2"], ["class_0"], ["class_1"], ["class_2"], ["class_1", "class_2"]]
             for class_inclusion_list in [["class_0", "class_1", "class_2"], ["class_0"], ["class_1"], ["class_2"], ["class_1", "class_2"]]
         ]
         ]
 
 
@@ -87,12 +87,12 @@ class TestDetectionDatasetCaching(unittest.TestCase):
         self.assertEqual(0, self._count_cached_array())
         self.assertEqual(0, self._count_cached_array())
 
 
         _ = DummyDetectionDataset(input_dim=(640, 512), ignore_empty_annotations=True,
         _ = DummyDetectionDataset(input_dim=(640, 512), ignore_empty_annotations=True,
-                                  cache=True, cache_path=self.temp_cache_dir, data_dir='/home/')
+                                  cache=True, cache_dir=self.temp_cache_dir, data_dir='/home/')
         self.assertEqual(1, self._count_cached_array())
         self.assertEqual(1, self._count_cached_array())
 
 
         for _ in range(5):
         for _ in range(5):
             _ = DummyDetectionDataset(input_dim=(640, 512), ignore_empty_annotations=True,
             _ = DummyDetectionDataset(input_dim=(640, 512), ignore_empty_annotations=True,
-                                      cache=True, cache_path=self.temp_cache_dir, data_dir='/home/')
+                                      cache=True, cache_dir=self.temp_cache_dir, data_dir='/home/')
             self.assertEqual(1, self._count_cached_array())
             self.assertEqual(1, self._count_cached_array())
 
 
         self._empty_cache()
         self._empty_cache()
Discard
Tip!

Press p or to see the previous file or, n or to see the next file