dilation
dilation copied to clipboard
trainning error:AttributeError: 'module' object has no attribute 'ImageLabelDataParameter'
when I run the train.py ,I get this error:
Traceback (most recent call last):
File "train.py", line 251, in
Did you use my caffe for training? https://github.com/fyu/caffe-dilation
It is not necessary to run prediction.
yeah,I forgot to change caffe-root , I used another caffe before. Thanks!
Hi all, Sorry, I have the same question, and I have already added the ${BUILD_DIR}/build_master/python into my PYTHONPATH, but it still appears the same error.
There is another stranger thing, after I make pycaffe, there is no caffe_pb2 in ${BUILD_DIR}/build_master/python/caffe/proto, and I try to copy it from original caffe which is already built, is it ok?
Thanks!
@vigorous0503 if caffe_pb2 doesn't exist, you can try to make clean and build the binary again. See if that solves your problem.
If you copy caffe_pb2 from original caffe, you will get the above error, since ImageLabelDataParameter doesn't exist in the original caffe.
I tried to use your caffe, and import caffe in the train.py, however, it turns out ImportError: No module named _caffe. When I use another caffe in predict.py, it works well. I don't know how to fix it. Could you help me? Thank you! It seems that some files in ../caffe-dilation/python/caffe/ failed to be generate...?
@Dandue Please check README of caffe-dilation. Or https://github.com/fyu/dilation/issues/11
"Make sure that the Caffe version is newer than commit 08c5df." So I use the latest version of caffe. But it still turns out AttributeError: 'module' object has no attribute 'ImageLabelDataParameter'. I also have changed the path of caffe root. Is it necessary for us to use the version of your own caffe? https://github.com/fyu/caffe-dilation What about other newer version of caffe? Thank you very much!