Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchen-qinyinghua committed Dec 11, 2015
2 parents 9b058ac + 841bd10 commit f26801d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,10 @@ List of Contributors
* [nowozin](https://github.com/nowozin)
* [Mathis](https://github.com/sveitser)
* [sennendoko](https://github.com/sennendoko)
* [srand99](https://github.com/srand99)
* [Yizhi Liu](https://github.com/javelinjs)
* [Taiyun](https://github.com/taiyun)
* [Yanghao Li](https://github.com/lyttonhao)
* [Nan Zhu](https://github.com/CodingCat)
* [Ye Zhou](https://github.com/zhouye)
* [Zhang Chen](https://github.com/zhangchen-qinyinghua)
2 changes: 2 additions & 0 deletions doc/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ Some of the users might meet the link error `ld: library not found for -lgomp`,
To resolve this issue, run the following commands:

```
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist # this creates the locate database if it does not exist
locate libgomp.dylib #copy the path which is generated by this command, say path1
ln -s path1 /usr/local/lib/libgomp.dylib
Expand Down
1 change: 0 additions & 1 deletion python/mxnet/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ def _make_ndarray_function(handle):
NDARRAY_ARG_BEFORE_SCALAR = 1
ACCEPT_EMPTY_MUTATE_TARGET = 1 << 2
# Get the property of NDArray
n_mutate_vars = 0
n_used_vars = mx_uint()
n_scalars = mx_uint()
n_mutate_vars = mx_uint()
Expand Down
12 changes: 6 additions & 6 deletions src/io/image_augmenter.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,20 +192,20 @@ class ImageAugmenter {
y /= 2; x /= 2;
}
cv::Rect roi(x, y, rand_crop_size, rand_crop_size);
cv::resize(res(roi), res, cv::Size(param_.data_shape[1], param_.data_shape[2]));
cv::resize(res(roi), res, cv::Size(param_.data_shape[2], param_.data_shape[1]));
} else {
CHECK(static_cast<index_t>(res.cols) >= param_.data_shape[1]
&& static_cast<index_t>(res.rows) >= param_.data_shape[2])
CHECK(static_cast<index_t>(res.rows) >= param_.data_shape[1]
&& static_cast<index_t>(res.cols) >= param_.data_shape[2])
<< "input image size smaller than input shape";
index_t y = res.rows - param_.data_shape[2];
index_t x = res.cols - param_.data_shape[1];
index_t y = res.rows - param_.data_shape[1];
index_t x = res.cols - param_.data_shape[2];
if (param_.rand_crop != 0) {
y = std::uniform_int_distribution<index_t>(0, y)(*prnd);
x = std::uniform_int_distribution<index_t>(0, x)(*prnd);
} else {
y /= 2; x /= 2;
}
cv::Rect roi(x, y, param_.data_shape[1], param_.data_shape[2]);
cv::Rect roi(x, y, param_.data_shape[2], param_.data_shape[1]);
res = res(roi);
}
return res;
Expand Down

0 comments on commit f26801d

Please sign in to comment.