Skip to content

Commit

Permalink
WindowDataLayer outputs 1D labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdonahue committed Nov 30, 2014
1 parent 807500b commit 4d982cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/caffe/layers/window_data_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ void WindowDataLayer<Dtype>::DataLayerSetUp(const vector<Blob<Dtype>*>& bottom,
<< top[0]->channels() << "," << top[0]->height() << ","
<< top[0]->width();
// label
top[1]->Reshape(batch_size, 1, 1, 1);
this->prefetch_label_.Reshape(batch_size, 1, 1, 1);
vector<int> label_shape(1, batch_size);
top[1]->Reshape(label_shape);
this->prefetch_label_.Reshape(label_shape);

// data mean
has_mean_file_ = this->transform_param_.has_mean_file();
Expand Down

0 comments on commit 4d982cd

Please sign in to comment.