Skip to content

Commit

Permalink
fixed the missing CV flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangqing committed Nov 19, 2013
1 parent 244acf9 commit 95413ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caffe/util/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ bool ReadImageToDatum(const string& filename, const int label,
cv::Mat cv_img_origin = cv::imread(filename, cv::IMREAD_COLOR);
cv::resize(cv_img_origin, cv_img, cv::Size(height, width));
} else {
cv_img = cv::imread(filename, CV_LOAD_IMAGE_COLOR);
cv_img = cv::imread(filename, cv::IMREAD_COLOR);
}
if (!cv_img.data) {
LOG(ERROR) << "Could not open or find file " << filename;
Expand Down

0 comments on commit 95413ff

Please sign in to comment.