提交 a488cf69 编写于 作者: E edencfc

修复PaddleCV/PaddleDetection/tools目录下文件import路径,与文档相一致

上级 8a7b1e36
...@@ -20,6 +20,9 @@ from argparse import ArgumentParser, RawDescriptionHelpFormatter ...@@ -20,6 +20,9 @@ from argparse import ArgumentParser, RawDescriptionHelpFormatter
import yaml import yaml
import sys
sys.path.append('..')
from ppdet.core.workspace import get_registered_modules, load_config from ppdet.core.workspace import get_registered_modules, load_config
from ppdet.utils.cli import ColorTTY from ppdet.utils.cli import ColorTTY
......
...@@ -21,6 +21,9 @@ import multiprocessing ...@@ -21,6 +21,9 @@ import multiprocessing
import paddle.fluid as fluid import paddle.fluid as fluid
import sys
sys.path.append('..')
from ppdet.utils.eval_utils import parse_fetches, eval_run, eval_results from ppdet.utils.eval_utils import parse_fetches, eval_run, eval_results
import ppdet.utils.checkpoint as checkpoint import ppdet.utils.checkpoint as checkpoint
from ppdet.utils.cli import ArgsParser from ppdet.utils.cli import ArgsParser
......
...@@ -24,6 +24,9 @@ from PIL import Image ...@@ -24,6 +24,9 @@ from PIL import Image
from paddle import fluid from paddle import fluid
import sys
sys.path.append('..')
from ppdet.core.workspace import load_config, merge_config, create from ppdet.core.workspace import load_config, merge_config, create
from ppdet.modeling.model_input import create_feed from ppdet.modeling.model_input import create_feed
from ppdet.data.data_feed import create_reader from ppdet.data.data_feed import create_reader
......
...@@ -35,8 +35,12 @@ set_paddle_flags( ...@@ -35,8 +35,12 @@ set_paddle_flags(
FLAGS_eager_delete_tensor_gb=0, # enable GC to save memory FLAGS_eager_delete_tensor_gb=0, # enable GC to save memory
) )
from paddle import fluid from paddle import fluid
import sys
sys.path.append('..')
from ppdet.core.workspace import load_config, merge_config, create from ppdet.core.workspace import load_config, merge_config, create
from ppdet.data.data_feed import create_reader from ppdet.data.data_feed import create_reader
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册