diff --git a/tools/eval.py b/tools/eval.py index 16f6acee84e791b5a3e85cfb9563dec017cd242f..65080e90e8880233646ea0d3b8c73def183653aa 100755 --- a/tools/eval.py +++ b/tools/eval.py @@ -22,6 +22,10 @@ parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2))) if parent_path not in sys.path: sys.path.append(parent_path) +# ignore warning log +import warnings +warnings.filterwarnings('ignore') + import paddle from ppdet.core.workspace import load_config, merge_config diff --git a/tools/export_model.py b/tools/export_model.py index 6665d2bf9b97024d30a99cf1de3bc81353397653..8cf3885c88552ca9b48f8b8d6796377d96912a2e 100644 --- a/tools/export_model.py +++ b/tools/export_model.py @@ -21,6 +21,10 @@ parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2))) if parent_path not in sys.path: sys.path.append(parent_path) +# ignore warning log +import warnings +warnings.filterwarnings('ignore') + import paddle from ppdet.core.workspace import load_config, merge_config diff --git a/tools/infer.py b/tools/infer.py index a73e14a67cb3ee9705477bba449fa15418fa8092..4b38225ff65ddae9f56d3377bc0d98a908086c0f 100755 --- a/tools/infer.py +++ b/tools/infer.py @@ -21,6 +21,9 @@ parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2))) if parent_path not in sys.path: sys.path.append(parent_path) +# ignore warning log +import warnings +warnings.filterwarnings('ignore') import glob import paddle diff --git a/tools/train.py b/tools/train.py index 675163b4eebfce351379be5331c7372ee57891b4..3a7d4f69fd7636e78f46927239d898fef1115fdb 100755 --- a/tools/train.py +++ b/tools/train.py @@ -24,6 +24,9 @@ if parent_path not in sys.path: import random import numpy as np +# ignore warning log +import warnings +warnings.filterwarnings('ignore') import paddle