From 3d252089b9e8f6c3a616687e2044d4cb74686c5b Mon Sep 17 00:00:00 2001 From: zhang_lu Date: Thu, 25 Jul 2024 11:12:16 +0800 Subject: [PATCH] fix the pydantic 'protected_namespaces' warning --- engine/tools/ovd_tool.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/tools/ovd_tool.py b/engine/tools/ovd_tool.py index e9f5c2a..6745ec6 100755 --- a/engine/tools/ovd_tool.py +++ b/engine/tools/ovd_tool.py @@ -33,6 +33,10 @@ class ObjectDetection(BaseModelTool): "Tasks like object counting, specific object detection, etc. must use this tool.") ovd_endpoint: str model_id: str = 'OmDet-Turbo_tiny_SWIN_T' + + class Config: + """Configuration for this pydantic object.""" + protected_namespaces = () def _run( self, timestamps: str, labels: str