yahoo / open_nsfw

Not Suitable for Work (NSFW) classification using deep neural network Caffe models.
BSD 2-Clause "Simplified" License
5.86k stars 1.05k forks source link

'Incompatible number of blobs for layer bn_1' - Help please! #45

Open midaha opened 7 years ago

midaha commented 7 years ago

When running nsfw_classify.py as per the example code I get the following error:

Check failed: target_blobs.size() == source_layer.blobs_size() (5 vs. 3) Incompatible number of blobs for layer bn_1 Check failure stack trace:

Does the deploy.prototxt and weights not line up properly? I've downloaded the files several times (to check it didn't corrupt) - and not modified anything.

Any tips?

lcwbupt commented 7 years ago

which caffe version did you use? i think you can you the BVLC newest caffe to try

asfix commented 6 years ago

https://github.com/NVIDIA/DIGITS/issues/1648

this worked for me