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

#307 Hotfix/sg 000 fix image loading new detectiondataset

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:hotfix/SG-000-fix_image_loading_new_detectiondataset
@@ -61,7 +61,7 @@ class TestDetectionDatasetCaching(unittest.TestCase):
 
 
         self.assertEqual(1, self._count_cached_array())
         self.assertEqual(1, self._count_cached_array())
         for first_dataset, second_dataset in zip(datasets[:-1], datasets[1:]):
         for first_dataset, second_dataset in zip(datasets[:-1], datasets[1:]):
-            self.assertTrue(np.array_equal(first_dataset.cached_imgs, second_dataset.cached_imgs))
+            self.assertTrue(np.array_equal(first_dataset.cached_imgs_padded, second_dataset.cached_imgs_padded))
 
 
         self._empty_cache()
         self._empty_cache()
 
 
@@ -76,7 +76,7 @@ class TestDetectionDatasetCaching(unittest.TestCase):
 
 
         self.assertEqual(5, self._count_cached_array())
         self.assertEqual(5, self._count_cached_array())
         for first_dataset, second_dataset in zip(datasets[:-1], datasets[1:]):
         for first_dataset, second_dataset in zip(datasets[:-1], datasets[1:]):
-            self.assertFalse(np.array_equal(first_dataset.cached_imgs, second_dataset.cached_imgs))
+            self.assertFalse(np.array_equal(first_dataset.cached_imgs_padded, second_dataset.cached_imgs_padded))
 
 
         self._empty_cache()
         self._empty_cache()
 
 
Discard
Tip!

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