caffe icon indicating copy to clipboard operation
caffe copied to clipboard

web demo and classify.py broken

Open EvanWeiner opened this issue 11 years ago • 6 comments

The python tools and examples are currently broken on master.

I'd like to suggest adding a test case for this before releasing future Caffe updates.

EvanWeiner avatar Feb 22 '15 10:02 EvanWeiner

The python tools and examples are currently broken on master.

No, pycaffe and the examples actually work when installed according to the instructions as evidenced by make pytest checked by continuous integration and ourselves and individually checking the ipython notebook examples for release. Without any detail it's hard to know your problem. Remember to make clean between releases at least.

I'd like to suggest adding a test case

Adding more Python tests -- in particular integration tests of small examples that run a network and check output -- is a good idea to not rely on manual checking. If you have a concrete idea for a test, please send a PR.

If you need installation / build help join the caffe-users group.

shelhamer avatar Feb 22 '15 17:02 shelhamer

@shelhamer - I kindly request this issue be re-visited because in Caffe's latest release much of the python code is indeed broken, here's the details:

  1. The python-based web_demo in the examples folder is no longer working.
  2. The classifiy.py script in the python folder is no longer working.

EDIT: sudo make pytest was successful for me after I modified Makefile.config to use Python layers.

EvanWeiner avatar Feb 23 '15 08:02 EvanWeiner

Thanks for coming back with detail. 1 & 2 can be looked into -- @sergeyk could you check the web demo? -- and should likely be given pytests for automatic checking.

  1. there is a pytest for PythonLayer so if you install without it that test fails. We'll post an issue to explain that / note it in the error message. At some point we might be able to make it conditional but can't loop back on it now.

Note that the actual caffe.Net interface and all the *.ipynb notebooks do work. On Mon, Feb 23, 2015 at 00:21 EvanWeiner [email protected] wrote:

@shelhamer https://github.com/shelhamer - I kindly request this issue be re-visited because in Caffe's latest release much of the python code is indeed broken, here's the details:

  1. The python-based web_demo in the examples folder is no longer working.
  2. The classifiy.py script in the python folder is no longer working.
  3. sudo make pytest fails for me after upgrading to latest code base and doing a make clean. Note that sudo make runtest does work fine for me after compiling the main source. Here's the error I'm getting for the failed make pytest:

F0223 08:14:56.364547 7935 layer_factory.hpp:77] Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Python (known types: AbsVal, Accuracy, ArgMax, BNLL, Concat, ContrastiveLoss, Convolution, Data, Deconvolution, Dropout, DummyData, Eltwise, EuclideanLoss, Exp, Flatten, HDF5Data, HDF5Output, HingeLoss, Im2col, ImageData, InfogainLoss, InnerProduct, LRN, MVN, MemoryData, MultinomialLogisticLoss, Pooling, Power, ReLU, Sigmoid, SigmoidCrossEntropyLoss, Silence, Slice, Softmax, SoftmaxWithLoss, Split, TanH, Threshold, WindowData) *** Check failure stack trace: *** Aborted (core dumped) make: *** [pytest] Error 134

— Reply to this email directly or view it on GitHub https://github.com/BVLC/caffe/issues/1937#issuecomment-75504242.

shelhamer avatar Feb 23 '15 16:02 shelhamer

Will check later tonight.

On Mon, Feb 23, 2015 at 8:12 AM, Evan Shelhamer [email protected] wrote:

Thanks for coming back with detail. 1 & 2 can be looked into -- @sergeyk could you check the web demo? -- and should likely be given pytests for automatic checking.

  1. there is a pytest for PythonLayer so if you install without it that test fails. We'll post an issue to explain that / note it in the error message. At some point we might be able to make it conditional but can't loop back on it now.

Note that the actual caffe.Net interface and all the *.ipynb notebooks do work. On Mon, Feb 23, 2015 at 00:21 EvanWeiner [email protected] wrote:

@shelhamer https://github.com/shelhamer - I kindly request this issue be re-visited because in Caffe's latest release much of the python code is indeed broken, here's the details:

  1. The python-based web_demo in the examples folder is no longer working.
  2. The classifiy.py script in the python folder is no longer working.
  3. sudo make pytest fails for me after upgrading to latest code base and doing a make clean. Note that sudo make runtest does work fine for me after compiling the main source. Here's the error I'm getting for the failed make pytest:

F0223 08:14:56.364547 7935 layer_factory.hpp:77] Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Python (known types: AbsVal, Accuracy, ArgMax, BNLL, Concat, ContrastiveLoss, Convolution, Data, Deconvolution, Dropout, DummyData, Eltwise, EuclideanLoss, Exp, Flatten, HDF5Data, HDF5Output, HingeLoss, Im2col, ImageData, InfogainLoss, InnerProduct, LRN, MVN, MemoryData, MultinomialLogisticLoss, Pooling, Power, ReLU, Sigmoid, SigmoidCrossEntropyLoss, Silence, Slice, Softmax, SoftmaxWithLoss, Split, TanH, Threshold, WindowData) *** Check failure stack trace: *** Aborted (core dumped) make: *** [pytest] Error 134

— Reply to this email directly or view it on GitHub https://github.com/BVLC/caffe/issues/1937#issuecomment-75504242.

— Reply to this email directly or view it on GitHub https://github.com/BVLC/caffe/issues/1937#issuecomment-75573200.

sergeyk avatar Feb 23 '15 20:02 sergeyk

I'm having the same issue where make pytest works, however there is still the error TypeError: __init__() got an unexpected keyword argument 'gpu' when running web_app.py. Running Ubuntu 14.04 64Bit, Python 2.7, NVidia GTX680

thesamwise avatar Mar 05 '15 18:03 thesamwise

classify.py and the web demo are fixed in #2058.

shelhamer avatar Mar 07 '15 03:03 shelhamer