未验证 提交 4874b56f 编写于 作者: G Guanghua Yu 提交者: GitHub

fix ignore warning (#2648)

上级 d509f7bd
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册