Skip to content

Commit

Permalink
modify Makefile to link with opencv_contrib and change blocking_queue…
Browse files Browse the repository at this point in the history
….cpp to add two headers and Blockqueue with DataReader and Datum
  • Loading branch information
xizero00 committed Jul 26, 2017
1 parent a697dec commit 0cba003
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ ifeq ($(USE_LMDB), 1)
LIBRARIES += lmdb
endif
ifeq ($(USE_OPENCV), 1)
LIBRARIES += opencv_core opencv_highgui opencv_imgproc
LIBRARIES += opencv_core opencv_highgui opencv_imgproc opencv_contrib

ifeq ($(OPENCV_VERSION), 3)
LIBRARIES += opencv_imgcodecs
Expand Down
4 changes: 4 additions & 0 deletions src/caffe/util/blocking_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include <string>

#include "caffe/layers/base_data_layer.hpp"
#include "caffe/data_reader.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/parallel.hpp"
#include "caffe/util/blocking_queue.hpp"

Expand Down Expand Up @@ -87,5 +89,7 @@ size_t BlockingQueue<T>::size() const {

template class BlockingQueue<Batch<float>*>;
template class BlockingQueue<Batch<double>*>;
template class BlockingQueue<Datum*>;
template class BlockingQueue<shared_ptr<DataReader::QueuePair> >;

} // namespace caffe

0 comments on commit 0cba003

Please sign in to comment.