issue during CreateNet in MNIST tutorial #1012
Comments
This is solved by following instructions from: https://github.com/caffe2/caffe2/blob/master/caffe2/python/tutorials/MNIST.ipynb then the AddTrainingOperators does not report any warning anymore and the creation of the train network is not crashing anymore. |
Hi, @fbadaud There is error for in running the tutorial: RuntimeError: [enforce fail at leveldb.cc:70] status.ok(). Failed to open leveldb /root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb. Invalid argument: /root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb: does not exist (create_if_missing is false) Error from operator: I have those image files in the folder: Could you please check what the error here is? best regards, |
Hi wxie |
Hi, @fbadaud Thanks. I am sure what you want me to check, so I post the complete error:
... And also my data directory: Could you please check? regards, |
hi Wxie in your ~/work/caffe2-example/mnist-cnn/ make a pwd and verify if the path correspond to : if it is matching, you might looks at the right of your files in this directory hope it helps |
Hi, @fbadaud Thanks. I am sure what you want me to check, so I post the complete error:
... And also my data directory: Could you please check? regards, |
Hi, @fbadaud: The pwd is ok. The problem remains the same, and file right is like: Where could be the problem? best regards, |
Hi Wxie2017 I run again the trial on my side and got an error similar as you i think now. so if i find a solution i will share. |
hi again Wxie As I said yesterday I got almost similar error as you during execution of my script for this trial. This is another error versus the initial ticket I report about ITER and this new one relative to leveldb files. In my case it occurs during the running of the network and it crash due to previous execution of the script and remaining .leveldb files in my root directory. I then rm -r *.leveldb in my root directory and the run is passing again. on your side the error occurs earlier during the initialization of the network it looks that some leveldb can not be produced and used by the RunNetOnce step. may be you have a write permission issue in your working directory or I suggest you post a new ticket with this problem |
Hello
I follow https://caffe2.ai/docs/tutorial-MNIST.html on my installation of Caffe2 on Ubuntu 16.04.
the command: workspace.CreateNet(train_model.net) is producing following error:
Traceback for operator 26 in network mnist_train
:11
:8
/home/b2bot/anaconda2/lib/python2.7/site-packages/IPython/core/interactiveshell.py:2881
/home/b2bot/anaconda2/lib/python2.7/site-packages/IPython/core/interactiveshell.py:2821
/home/b2bot/anaconda2/lib/python2.7/site-packages/IPython/core/interactiveshell.py:2717
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/zmqshell.py:501
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/ipkernel.py:196
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/kernelbase.py:390
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/kernelbase.py:228
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/kernelbase.py:276
/home/b2bot/anaconda2/lib/python2.7/site-packages/tornado/stack_context.py:275
/home/b2bot/anaconda2/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py:414
/home/b2bot/anaconda2/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py:472
/home/b2bot/anaconda2/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py:440
/home/b2bot/anaconda2/lib/python2.7/site-packages/tornado/stack_context.py:275
/home/b2bot/anaconda2/lib/python2.7/site-packages/tornado/ioloop.py:887
/home/b2bot/anaconda2/lib/python2.7/site-packages/zmq/eventloop/ioloop.py:177
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/kernelapp.py:474
/home/b2bot/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py:658
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/main.py:3
/home/b2bot/anaconda2/lib/python2.7/runpy.py:72
/home/b2bot/anaconda2/lib/python2.7/runpy.py:174
RuntimeError Traceback (most recent call last)
in ()
----> 1 workspace.CreateNet(train_model.net)
/home/b2bot/Project/caffe2/caffe2/build/caffe2/python/workspace.pyc in CreateNet(net, overwrite, input_blobs)
145 C.Workspace.current._last_failed_op_net_position,
146 GetNetName(net),
--> 147 StringifyProto(net), overwrite,
148 )
149
/home/b2bot/Project/caffe2/caffe2/build/caffe2/python/workspace.pyc in CallWithExceptionIntercept(func, op_id_fetcher, net_name, *args, **kwargs)
164 def CallWithExceptionIntercept(func, op_id_fetcher, net_name, *args, **kwargs):
165 try:
--> 166 return func(*args, **kwargs)
167 except Exception:
168 op_id = op_id_fetcher()
RuntimeError: [enforce fail at operator.cc:73] schema->Verify(operator_def). Operator def did not pass schema checking: input: "iter" output: "mnist_train/Iter" name: "" type: "Iter"
any idea to debug and fix this?
thanks in advance, Fran
The text was updated successfully, but these errors were encountered: