Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleSeg
提交
e55fd759
P
PaddleSeg
项目概览
PaddlePaddle
/
PaddleSeg
通知
285
Star
8
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
53
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleSeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
53
Issue
53
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e55fd759
编写于
9月 11, 2020
作者:
M
michaelowenliu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change dygraph to paddleseg api
上级
30ec28bc
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
22 addition
and
25 deletion
+22
-25
dygraph/infer.py
dygraph/infer.py
+5
-5
dygraph/paddleseg/core/infer.py
dygraph/paddleseg/core/infer.py
+2
-2
dygraph/paddleseg/core/train.py
dygraph/paddleseg/core/train.py
+4
-4
dygraph/paddleseg/core/val.py
dygraph/paddleseg/core/val.py
+3
-3
dygraph/train.py
dygraph/train.py
+4
-6
dygraph/val.py
dygraph/val.py
+4
-5
未找到文件。
dygraph/infer.py
浏览文件 @
e55fd759
...
@@ -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
dygraph
.datasets
import
DATASETS
from
paddleseg
.datasets
import
DATASETS
import
dygraph
.transforms
as
T
import
paddleseg
.transforms
as
T
from
dygraph
.cvlibs
import
manager
from
paddleseg
.cvlibs
import
manager
from
dygraph
.utils
import
get_environ_info
from
paddleseg
.utils
import
get_environ_info
from
dygraph
.core
import
infer
from
paddleseg
.core
import
infer
def
parse_args
():
def
parse_args
():
...
...
dygraph/paddleseg/core/infer.py
浏览文件 @
e55fd759
...
@@ -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
from
dygraph
import
utils
from
paddleseg
import
utils
import
dygraph
.utils.logger
as
logger
import
paddleseg
.utils.logger
as
logger
def
mkdir
(
path
):
def
mkdir
(
path
):
...
...
dygraph/paddleseg/core/train.py
浏览文件 @
e55fd759
...
@@ -22,10 +22,10 @@ from paddle.fluid.io import DataLoader
...
@@ -22,10 +22,10 @@ from paddle.fluid.io import DataLoader
from
paddle.io
import
DistributedBatchSampler
from
paddle.io
import
DistributedBatchSampler
import
paddle.nn.functional
as
F
import
paddle.nn.functional
as
F
import
dygraph
.utils.logger
as
logger
import
paddleseg
.utils.logger
as
logger
from
dygraph
.utils
import
load_pretrained_model
from
paddleseg
.utils
import
load_pretrained_model
from
dygraph
.utils
import
resume
from
paddleseg
.utils
import
resume
from
dygraph
.utils
import
Timer
,
calculate_eta
from
paddleseg
.utils
import
Timer
,
calculate_eta
from
.val
import
evaluate
from
.val
import
evaluate
...
...
dygraph/paddleseg/core/val.py
浏览文件 @
e55fd759
...
@@ -22,9 +22,9 @@ import paddle.fluid as fluid
...
@@ -22,9 +22,9 @@ import paddle.fluid as fluid
import
paddle.nn.functional
as
F
import
paddle.nn.functional
as
F
import
paddle
import
paddle
import
dygraph
.utils.logger
as
logger
import
paddleseg
.utils.logger
as
logger
from
dygraph
.utils
import
ConfusionMatrix
from
paddleseg
.utils
import
ConfusionMatrix
from
dygraph
.utils
import
Timer
,
calculate_eta
from
paddleseg
.utils
import
Timer
,
calculate_eta
def
evaluate
(
model
,
def
evaluate
(
model
,
...
...
dygraph/train.py
浏览文件 @
e55fd759
...
@@ -17,12 +17,10 @@ import argparse
...
@@ -17,12 +17,10 @@ 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
import
dygraph
import
paddleseg
from
dygraph.cvlibs
import
manager
from
paddleseg.cvlibs
import
manager
from
dygraph.utils
import
get_environ_info
from
paddleseg.utils
import
get_environ_info
,
logger
,
Config
from
dygraph.utils
import
logger
from
paddleseg.core
import
train
from
dygraph.utils
import
Config
from
dygraph.core
import
train
def
parse_args
():
def
parse_args
():
...
...
dygraph/val.py
浏览文件 @
e55fd759
...
@@ -17,11 +17,10 @@ import argparse
...
@@ -17,11 +17,10 @@ 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
import
dygraph
import
paddleseg
from
dygraph.cvlibs
import
manager
from
paddleseg.cvlibs
import
manager
from
dygraph.utils
import
get_environ_info
from
paddleseg.utils
import
get_environ_info
,
Config
from
dygraph.utils
import
Config
from
paddleseg.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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录