提交 eb44ed02 编写于 作者: C chenguowei01

update import format

上级 33cd5c87
...@@ -17,11 +17,11 @@ import argparse ...@@ -17,11 +17,11 @@ import argparse
import paddle.fluid as fluid import paddle.fluid as fluid
from paddle.fluid.dygraph.parallel import ParallelEnv from paddle.fluid.dygraph.parallel import ParallelEnv
from datasets import DATASETS from dygraph.datasets import DATASETS
import transforms as T import dygraph.transforms as T
from models import MODELS from dygraph.models import MODELS
from utils import get_environ_info from dygraph.utils import get_environ_info
from core import train from dygraph.core import train
def parse_args(): def parse_args():
......
...@@ -17,11 +17,11 @@ import argparse ...@@ -17,11 +17,11 @@ import argparse
import paddle.fluid as fluid import paddle.fluid as fluid
from paddle.fluid.dygraph.parallel import ParallelEnv from paddle.fluid.dygraph.parallel import ParallelEnv
from datasets import DATASETS from dygraph.datasets import DATASETS
import transforms as T import dygraph.transforms as T
from models import MODELS from dygraph.models import MODELS
from utils import get_environ_info from dygraph.utils import get_environ_info
from core import train from dygraph.core import train
def parse_args(): def parse_args():
......
...@@ -20,8 +20,8 @@ import paddle.fluid as fluid ...@@ -20,8 +20,8 @@ import paddle.fluid as fluid
import cv2 import cv2
import tqdm import tqdm
import utils from dygraph import utils
import utils.logging as logging import dygraph.utils.logging as logging
def mkdir(path): def mkdir(path):
......
...@@ -19,10 +19,10 @@ from paddle.fluid.dygraph.parallel import ParallelEnv ...@@ -19,10 +19,10 @@ from paddle.fluid.dygraph.parallel import ParallelEnv
from paddle.fluid.io import DataLoader from paddle.fluid.io import DataLoader
from paddle.incubate.hapi.distributed import DistributedBatchSampler from paddle.incubate.hapi.distributed import DistributedBatchSampler
import utils.logging as logging import dygraph.utils.logging as logging
from utils import load_pretrained_model from dygraph.utils import load_pretrained_model
from utils import resume from dygraph.utils import resume
from utils import Timer, calculate_eta from dygraph.utils import Timer, calculate_eta
from .val import evaluate from .val import evaluate
......
...@@ -20,9 +20,9 @@ import cv2 ...@@ -20,9 +20,9 @@ import cv2
from paddle.fluid.dygraph.base import to_variable from paddle.fluid.dygraph.base import to_variable
import paddle.fluid as fluid import paddle.fluid as fluid
import utils.logging as logging import dygraph.utils.logging as logging
from utils import ConfusionMatrix from dygraph.utils import ConfusionMatrix
from utils import Timer, calculate_eta from dygraph.utils import Timer, calculate_eta
def evaluate(model, def evaluate(model,
......
...@@ -18,7 +18,7 @@ import numpy as np ...@@ -18,7 +18,7 @@ import numpy as np
from PIL import Image from PIL import Image
from .dataset import Dataset from .dataset import Dataset
from utils.download import download_file_and_uncompress from dygraph.utils.download import download_file_and_uncompress
DATA_HOME = os.path.expanduser('~/.cache/paddle/dataset') DATA_HOME = os.path.expanduser('~/.cache/paddle/dataset')
URL = "http://data.csail.mit.edu/places/ADEchallenge/ADEChallengeData2016.zip" URL = "http://data.csail.mit.edu/places/ADEchallenge/ADEChallengeData2016.zip"
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
import os import os
from .dataset import Dataset from .dataset import Dataset
from utils.download import download_file_and_uncompress from dygraph.utils.download import download_file_and_uncompress
DATA_HOME = os.path.expanduser('~/.cache/paddle/dataset') DATA_HOME = os.path.expanduser('~/.cache/paddle/dataset')
URL = "https://paddleseg.bj.bcebos.com/dataset/optic_disc_seg.zip" URL = "https://paddleseg.bj.bcebos.com/dataset/optic_disc_seg.zip"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
import os import os
from .dataset import Dataset from .dataset import Dataset
from utils.download import download_file_and_uncompress from dygraph.utils.download import download_file_and_uncompress
DATA_HOME = os.path.expanduser('~/.cache/paddle/dataset') DATA_HOME = os.path.expanduser('~/.cache/paddle/dataset')
URL = "http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar" URL = "http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar"
......
...@@ -17,11 +17,11 @@ import argparse ...@@ -17,11 +17,11 @@ import argparse
import paddle.fluid as fluid import paddle.fluid as fluid
from paddle.fluid.dygraph.parallel import ParallelEnv from paddle.fluid.dygraph.parallel import ParallelEnv
from datasets import DATASETS from dygraph.datasets import DATASETS
import transforms as T import dygraph.transforms as T
from models import MODELS from dygraph.models import MODELS
from utils import get_environ_info from dygraph.utils import get_environ_info
from core import infer from dygraph.core import infer
def parse_args(): def parse_args():
......
...@@ -27,7 +27,7 @@ import numpy as np ...@@ -27,7 +27,7 @@ import numpy as np
from scipy.io import loadmat from scipy.io import loadmat
import tqdm import tqdm
from utils.download import download_file_and_uncompress from dygraph.utils.download import download_file_and_uncompress
DATA_HOME = os.path.expanduser('~/.cache/paddle/dataset') DATA_HOME = os.path.expanduser('~/.cache/paddle/dataset')
URL = 'http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/semantic_contours/benchmark.tgz' URL = 'http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/semantic_contours/benchmark.tgz'
......
...@@ -17,11 +17,11 @@ import argparse ...@@ -17,11 +17,11 @@ import argparse
import paddle.fluid as fluid import paddle.fluid as fluid
from paddle.fluid.dygraph.parallel import ParallelEnv from paddle.fluid.dygraph.parallel import ParallelEnv
from datasets import DATASETS from dygraph.datasets import DATASETS
import transforms as T import dygraph.transforms as T
from models import MODELS from dygraph.models import MODELS
from utils import get_environ_info from dygraph.utils import get_environ_info
from core import train from dygraph.core import train
def parse_args(): def parse_args():
......
...@@ -17,11 +17,11 @@ import argparse ...@@ -17,11 +17,11 @@ import argparse
import paddle.fluid as fluid import paddle.fluid as fluid
from paddle.fluid.dygraph.parallel import ParallelEnv from paddle.fluid.dygraph.parallel import ParallelEnv
from datasets import DATASETS from dygraph.datasets import DATASETS
import transforms as T import dygraph.transforms as T
from models import MODELS from dygraph.models import MODELS
from utils import get_environ_info from dygraph.utils import get_environ_info
from core import evaluate from dygraph.core import evaluate
def parse_args(): def parse_args():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册