Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
3790f33f
P
PaddleClas
项目概览
PaddlePaddle
/
PaddleClas
大约 1 年 前同步成功
通知
115
Star
4999
Fork
1114
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
6
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleClas
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
6
合并请求
6
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3790f33f
编写于
9月 19, 2020
作者:
littletomatodonkey
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix python path
上级
0eba7166
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
37 addition
and
6 deletion
+37
-6
tools/eval.py
tools/eval.py
+5
-0
tools/eval.sh
tools/eval.sh
+0
-2
tools/eval_multi_platform.py
tools/eval_multi_platform.py
+5
-0
tools/export_model.py
tools/export_model.py
+6
-0
tools/export_serving_model.py
tools/export_serving_model.py
+5
-0
tools/infer/infer.py
tools/infer/infer.py
+6
-2
tools/run.sh
tools/run.sh
+0
-2
tools/train.py
tools/train.py
+5
-0
tools/train_multi_platform.py
tools/train_multi_platform.py
+5
-0
未找到文件。
tools/eval.py
浏览文件 @
3790f33f
...
...
@@ -17,6 +17,11 @@ from __future__ import division
from
__future__
import
print_function
import
os
import
sys
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
__dir__
)
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
__dir__
,
'../'
)))
import
argparse
import
paddle.fluid
as
fluid
...
...
tools/eval.sh
浏览文件 @
3790f33f
export
PYTHONPATH
=
$PWD
:
$PYTHONPATH
python
-m
paddle.distributed.launch
\
--selected_gpus
=
"0"
\
tools/eval.py
\
...
...
tools/eval_multi_platform.py
浏览文件 @
3790f33f
...
...
@@ -17,6 +17,11 @@ from __future__ import division
from
__future__
import
print_function
import
os
import
sys
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
__dir__
)
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
__dir__
,
'../'
)))
import
argparse
import
paddle.fluid
as
fluid
...
...
tools/export_model.py
浏览文件 @
3790f33f
...
...
@@ -12,6 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
sys
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
__dir__
)
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
__dir__
,
'../'
)))
import
argparse
from
ppcls.modeling
import
architectures
...
...
tools/export_serving_model.py
浏览文件 @
3790f33f
...
...
@@ -14,6 +14,11 @@
import
argparse
import
os
import
sys
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
__dir__
)
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
__dir__
,
'../'
)))
from
ppcls.modeling
import
architectures
import
paddle.fluid
as
fluid
...
...
tools/infer/infer.py
浏览文件 @
3790f33f
...
...
@@ -13,13 +13,17 @@
# limitations under the License.
import
os
import
utils
import
sys
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
__dir__
)
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
__dir__
,
'../../'
)))
import
argparse
import
numpy
as
np
import
paddle.fluid
as
fluid
from
ppcls.modeling
import
architectures
import
utils
def
parse_args
():
...
...
tools/run.sh
浏览文件 @
3790f33f
#!/usr/bin/env bash
export
PYTHONPATH
=
$PWD
:
$PYTHONPATH
python
-m
paddle.distributed.launch
\
--selected_gpus
=
"0,1,2,3"
\
tools/train.py
\
...
...
tools/train.py
浏览文件 @
3790f33f
...
...
@@ -18,6 +18,11 @@ from __future__ import print_function
import
argparse
import
os
import
sys
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
__dir__
)
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
__dir__
,
'../'
)))
from
sys
import
version_info
import
paddle.fluid
as
fluid
...
...
tools/train_multi_platform.py
浏览文件 @
3790f33f
...
...
@@ -18,6 +18,11 @@ from __future__ import print_function
import
argparse
import
os
import
sys
__dir__
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
__dir__
)
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
__dir__
,
'../'
)))
from
sys
import
version_info
import
paddle.fluid
as
fluid
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录