vae_tutorial icon indicating copy to clipboard operation
vae_tutorial copied to clipboard

got the error "Check failed: target_blobs.size() == source_layer.blobs_size() (2 vs. 0) "

Open peaceorwell opened this issue 9 years ago • 2 comments

When i run python mnist_vae.py, got "Check failed: target_blobs.size() == source_layer.blobs_size() (2 vs. 0) Incompatible number of blobs for layer decode4". This error come from 'net=caffe.Net('mnist_vae.prototxt','snapshots/mnist_vae_iter_60000.caffemodel', caffe.TEST'. I have checked the code,but found nothing wrong. hope for your help! :sob:

peaceorwell avatar Jan 06 '17 08:01 peaceorwell

I haven't seen an error like this one before. Did you get this with the exact code that's currently in the repository, or have you modified it somehow?

seanbell explains more about what this error message means here: https://github.com/BVLC/caffe/issues/2784

In the future, please include the full error message.

cdoersch avatar Jan 07 '17 17:01 cdoersch

Thank you, I had changed some layers before.When I revert the commit,it runs without error! :+1:

peaceorwell avatar Jan 09 '17 02:01 peaceorwell