Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
14285daa
M
models
项目概览
PaddlePaddle
/
models
大约 1 年 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
14285daa
编写于
9月 28, 2018
作者:
W
whs
提交者:
GitHub
9月 28, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove paddle.v2 from models. (#1312)
上级
7ec97024
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
16 addition
and
21 deletion
+16
-21
fluid/DeepASR/model_utils/model.py
fluid/DeepASR/model_utils/model.py
+0
-1
fluid/adversarial/tutorials/mnist_model.py
fluid/adversarial/tutorials/mnist_model.py
+1
-1
fluid/adversarial/tutorials/mnist_tutorial_bim.py
fluid/adversarial/tutorials/mnist_tutorial_bim.py
+1
-1
fluid/adversarial/tutorials/mnist_tutorial_deepfool.py
fluid/adversarial/tutorials/mnist_tutorial_deepfool.py
+1
-1
fluid/adversarial/tutorials/mnist_tutorial_fgsm.py
fluid/adversarial/tutorials/mnist_tutorial_fgsm.py
+1
-1
fluid/adversarial/tutorials/mnist_tutorial_ilcm.py
fluid/adversarial/tutorials/mnist_tutorial_ilcm.py
+1
-1
fluid/adversarial/tutorials/mnist_tutorial_jsma.py
fluid/adversarial/tutorials/mnist_tutorial_jsma.py
+1
-1
fluid/adversarial/tutorials/mnist_tutorial_lbfgs.py
fluid/adversarial/tutorials/mnist_tutorial_lbfgs.py
+1
-1
fluid/adversarial/tutorials/mnist_tutorial_mifgsm.py
fluid/adversarial/tutorials/mnist_tutorial_mifgsm.py
+1
-1
fluid/icnet/infer.py
fluid/icnet/infer.py
+3
-3
fluid/image_classification/caffe2fluid/examples/mnist/evaluate.py
...age_classification/caffe2fluid/examples/mnist/evaluate.py
+1
-1
fluid/metric_learning/losses/datareader.py
fluid/metric_learning/losses/datareader.py
+0
-1
fluid/ocr_recognition/eval.py
fluid/ocr_recognition/eval.py
+0
-1
fluid/ocr_recognition/infer.py
fluid/ocr_recognition/infer.py
+0
-1
fluid/policy_gradient/brain.py
fluid/policy_gradient/brain.py
+0
-1
fluid/video_classification/eval.py
fluid/video_classification/eval.py
+1
-1
fluid/video_classification/infer.py
fluid/video_classification/infer.py
+1
-1
fluid/video_classification/reader.py
fluid/video_classification/reader.py
+1
-1
fluid/video_classification/train.py
fluid/video_classification/train.py
+1
-1
未找到文件。
fluid/DeepASR/model_utils/model.py
浏览文件 @
14285daa
...
...
@@ -2,7 +2,6 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
paddle.v2
as
paddle
import
paddle.fluid
as
fluid
...
...
fluid/adversarial/tutorials/mnist_model.py
浏览文件 @
14285daa
"""
CNN on mnist data using fluid api of paddlepaddle
"""
import
paddle
.v2
as
paddle
import
paddle
import
paddle.fluid
as
fluid
...
...
fluid/adversarial/tutorials/mnist_tutorial_bim.py
浏览文件 @
14285daa
...
...
@@ -8,7 +8,7 @@ sys.path.append("..")
import
matplotlib.pyplot
as
plt
import
paddle.fluid
as
fluid
import
paddle
.v2
as
paddle
import
paddle
from
advbox.adversary
import
Adversary
from
advbox.attacks.gradient_method
import
BIM
...
...
fluid/adversarial/tutorials/mnist_tutorial_deepfool.py
浏览文件 @
14285daa
...
...
@@ -8,7 +8,7 @@ sys.path.append("..")
import
matplotlib.pyplot
as
plt
import
paddle.fluid
as
fluid
import
paddle
.v2
as
paddle
import
paddle
from
advbox.adversary
import
Adversary
from
advbox.attacks.deepfool
import
DeepFoolAttack
...
...
fluid/adversarial/tutorials/mnist_tutorial_fgsm.py
浏览文件 @
14285daa
...
...
@@ -8,7 +8,7 @@ sys.path.append("..")
import
matplotlib.pyplot
as
plt
import
numpy
as
np
import
paddle.fluid
as
fluid
import
paddle
.v2
as
paddle
import
paddle
from
advbox.adversary
import
Adversary
from
advbox.attacks.gradient_method
import
FGSM
...
...
fluid/adversarial/tutorials/mnist_tutorial_ilcm.py
浏览文件 @
14285daa
...
...
@@ -7,7 +7,7 @@ sys.path.append("..")
import
matplotlib.pyplot
as
plt
import
paddle.fluid
as
fluid
import
paddle
.v2
as
paddle
import
paddle
from
advbox.adversary
import
Adversary
from
advbox.attacks.gradient_method
import
ILCM
...
...
fluid/adversarial/tutorials/mnist_tutorial_jsma.py
浏览文件 @
14285daa
...
...
@@ -7,7 +7,7 @@ sys.path.append("..")
import
matplotlib.pyplot
as
plt
import
paddle.fluid
as
fluid
import
paddle
.v2
as
paddle
import
paddle
from
advbox.adversary
import
Adversary
from
advbox.attacks.saliency
import
JSMA
...
...
fluid/adversarial/tutorials/mnist_tutorial_lbfgs.py
浏览文件 @
14285daa
...
...
@@ -7,7 +7,7 @@ sys.path.append("..")
import
matplotlib.pyplot
as
plt
import
paddle.fluid
as
fluid
import
paddle
.v2
as
paddle
import
paddle
from
advbox.adversary
import
Adversary
from
advbox.attacks.lbfgs
import
LBFGS
...
...
fluid/adversarial/tutorials/mnist_tutorial_mifgsm.py
浏览文件 @
14285daa
...
...
@@ -9,7 +9,7 @@ sys.path.append("..")
import
matplotlib.pyplot
as
plt
import
numpy
as
np
import
paddle.fluid
as
fluid
import
paddle
.v2
as
paddle
import
paddle
from
advbox.adversary
import
Adversary
from
advbox.attacks.gradient_method
import
MIFGSM
...
...
fluid/icnet/infer.py
浏览文件 @
14285daa
...
...
@@ -8,7 +8,7 @@ import os
import
cv2
import
paddle.fluid
as
fluid
import
paddle
.v2
as
paddle
import
paddle
from
icnet
import
icnet
from
utils
import
add_arguments
,
print_arguments
,
get_feeder_data
from
paddle.fluid.layers.learning_rate_scheduler
import
_decay_step_counter
...
...
@@ -111,10 +111,10 @@ def infer(args):
for
line
in
open
(
args
.
images_list
):
image_file
=
args
.
images_path
+
"/"
+
line
.
strip
()
filename
=
os
.
path
.
basename
(
image_file
)
image
=
paddle
.
image
.
load_image
(
image
=
paddle
.
dataset
.
image
.
load_image
(
image_file
,
is_color
=
True
).
astype
(
"float32"
)
image
-=
IMG_MEAN
img
=
paddle
.
image
.
to_chw
(
image
)[
np
.
newaxis
,
:]
img
=
paddle
.
dataset
.
image
.
to_chw
(
image
)[
np
.
newaxis
,
:]
image_t
=
fluid
.
core
.
LoDTensor
()
image_t
.
set
(
img
,
place
)
result
=
exe
.
run
(
inference_program
,
...
...
fluid/image_classification/caffe2fluid/examples/mnist/evaluate.py
浏览文件 @
14285daa
...
...
@@ -8,7 +8,7 @@ import sys
import
os
import
numpy
as
np
import
paddle.fluid
as
fluid
import
paddle
.v2
as
paddle
import
paddle
def
test_model
(
exe
,
test_program
,
fetch_list
,
test_reader
,
feeder
):
...
...
fluid/metric_learning/losses/datareader.py
浏览文件 @
14285daa
...
...
@@ -4,7 +4,6 @@ import random
import
cPickle
import
functools
import
numpy
as
np
#import paddle.v2 as paddle
import
paddle
from
PIL
import
Image
,
ImageEnhance
...
...
fluid/ocr_recognition/eval.py
浏览文件 @
14285daa
import
paddle.v2
as
paddle
import
paddle.fluid
as
fluid
from
utility
import
add_arguments
,
print_arguments
,
to_lodtensor
,
get_ctc_feeder_data
,
get_attention_feeder_data
from
attention_model
import
attention_eval
...
...
fluid/ocr_recognition/infer.py
浏览文件 @
14285daa
from
__future__
import
print_function
import
paddle.v2
as
paddle
import
paddle.fluid
as
fluid
from
utility
import
add_arguments
,
print_arguments
,
to_lodtensor
,
get_ctc_feeder_data
,
get_attention_feeder_for_infer
import
paddle.fluid.profiler
as
profiler
...
...
fluid/policy_gradient/brain.py
浏览文件 @
14285daa
import
numpy
as
np
import
paddle.v2
as
paddle
import
paddle.fluid
as
fluid
# reproducible
np
.
random
.
seed
(
1
)
...
...
fluid/video_classification/eval.py
浏览文件 @
14285daa
...
...
@@ -2,7 +2,7 @@ import os
import
numpy
as
np
import
time
import
sys
import
paddle
.v2
as
paddle
import
paddle
import
paddle.fluid
as
fluid
from
resnet
import
TSN_ResNet
import
reader
...
...
fluid/video_classification/infer.py
浏览文件 @
14285daa
...
...
@@ -2,7 +2,7 @@ import os
import
numpy
as
np
import
time
import
sys
import
paddle
.v2
as
paddle
import
paddle
import
paddle.fluid
as
fluid
from
resnet
import
TSN_ResNet
import
reader
...
...
fluid/video_classification/reader.py
浏览文件 @
14285daa
...
...
@@ -5,7 +5,7 @@ import functools
import
cPickle
from
cStringIO
import
StringIO
import
numpy
as
np
import
paddle
.v2
as
paddle
import
paddle
from
PIL
import
Image
,
ImageEnhance
random
.
seed
(
0
)
...
...
fluid/video_classification/train.py
浏览文件 @
14285daa
...
...
@@ -2,7 +2,7 @@ import os
import
numpy
as
np
import
time
import
sys
import
paddle
.v2
as
paddle
import
paddle
import
paddle.fluid
as
fluid
from
resnet
import
TSN_ResNet
import
reader
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录