Skip to content

Commit bf32411

Browse files
committed
Merge branch 'develop' of https://github.com/baidu/Paddle into cmrnorm
2 parents 5fddd99 + 8a42a54 commit bf32411

File tree

117 files changed

+2318
-686
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+2318
-686
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ addons:
2929
- python-pip
3030
- python2.7-dev
3131
- m4
32-
- libprotobuf-dev
33-
- doxygen
34-
- protobuf-compiler
35-
- python-protobuf
3632
- python-numpy
3733
- python-wheel
3834
- libgoogle-glog-dev
@@ -43,6 +39,8 @@ addons:
4339
- graphviz
4440
- swig
4541
- clang-format-3.8
42+
- automake
43+
- libtool
4644
before_install:
4745
- |
4846
if [ ${JOB} == "BUILD_AND_TEST" ]; then

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./doc/howto/dev/contribute_to_paddle_en.md

cmake/FindSphinx.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function( Sphinx_add_target target_name builder conf cache source destination )
7272
${source}
7373
${destination}
7474
COMMENT "Generating sphinx documentation: ${builder}"
75-
COMMAND ln -s ${destination}/index_*.html ${destination}/index.html
75+
COMMAND ln -sf ${destination}/index_*.html ${destination}/index.html
7676
)
7777

7878
set_property(

cmake/check_packages.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ endif()
2424

2525
if(WITH_DOC)
2626
find_package(Sphinx REQUIRED)
27-
find_package(Doxygen REQUIRED)
2827
find_python_module(recommonmark REQUIRED)
2928
endif()
3029

demo/gan/data/download_cifar.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");

demo/gan/data/get_mnist_data.sh

100644100755
File mode changed.

demo/gan/gan_conf_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def conv_bn(input,
8787
print(imgSize, output_x, stride, filter_size, padding)
8888

8989
if trans:
90-
nameApx = "_conv"
91-
else:
9290
nameApx = "_convt"
91+
else:
92+
nameApx = "_conv"
9393

9494
if bn:
9595
conv = img_conv_layer(

demo/image_classification/data/download_cifar.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");

demo/image_classification/image_provider.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#
2323
# {'img_size': 32,
24-
# 'settings': <paddle.trainer.PyDataProviderWrapper.Cls instance at 0x7fea27cb6050>,
24+
# 'settings': a global object,
2525
# 'color': True,
2626
# 'mean_img_size': 32,
2727
# 'meta': './data/cifar-out/batches/batches.meta',
@@ -50,10 +50,10 @@ def hook(settings, img_size, mean_img_size, num_classes, color, meta, use_jpeg,
5050

5151
settings.logger.info('Image size: %s', settings.img_size)
5252
settings.logger.info('Meta path: %s', settings.meta_path)
53-
settings.input_types = [
54-
dense_vector(settings.img_raw_size), # image feature
55-
integer_value(settings.num_classes)
56-
] # labels
53+
settings.input_types = {
54+
'image': dense_vector(settings.img_raw_size),
55+
'label': integer_value(settings.num_classes)
56+
}
5757

5858
settings.logger.info('DataProvider Initialization finished')
5959

@@ -83,4 +83,7 @@ def processData(settings, file_list):
8383
img, settings.img_mean, settings.img_size,
8484
settings.is_train, settings.color)
8585
label = data['labels'][i]
86-
yield img_feat.astype('float32'), int(label)
86+
yield {
87+
'image': img_feat.astype('float32'),
88+
'label': int(label)
89+
}

0 commit comments

Comments
 (0)