torrvision / crfasrnn

This repository contains the source code for the semantic image segmentation method described in the ICCV 2015 paper: Conditional Random Fields as Recurrent Neural Networks. http://crfasrnn.torr.vision/
Other
1.34k stars 462 forks source link

Cannot align apparently disconnected blobs. #141

Closed AlexTS1980 closed 7 years ago

AlexTS1980 commented 7 years ago

My data is 16x4096x8x8 (fc7 layer from FCN), labels 16x1x250x250 (the actual image size is 250x250x3), the crop layer (the one that outputs Q0 and coarse afte splitting) is size 16x2x250x250 (2 is the number of classes) aligned to the size of the label. When I use crf-rnn caffe implementation, I get an

Check failed: this->net_->bottom_vecs()[layer_ind].size() > 0 (0 vs. 0) Cannot align apparently disconnected blobs.

error. As I understand, this comes from the fact that label layer isn't used before crop.

Not sure how to fix this error. It doesn't come up in the vanilla caffe implementation.

sylqiu commented 6 years ago

I have the same problem. Did you manage to fix it?