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

#583 fix compute_detection_metrics_per_cls return value when no detection …

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-452_fix_detection_per_metric
@@ -1,4 +1,5 @@
 import asyncio
 import asyncio
+import os.path
 
 
 
 
 def async_test_runner(async_io_co_routine):
 def async_test_runner(async_io_co_routine):
@@ -13,3 +14,7 @@ def async_test_runner(async_io_co_routine):
         return loop.run_until_complete(async_io_co_routine(*args, **kwargs))
         return loop.run_until_complete(async_io_co_routine(*args, **kwargs))
 
 
     return wrapper
     return wrapper
+
+
+def is_data_available(sub_dir: str = ""):
+    return os.path.exists(f"/data/{sub_dir}")
Discard
Tip!

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