New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue while creating models even though the project is built #4
Comments
It seems you didn't use my modified Caffe. As the error message says, my codes cannot be run with original Caffe because it needs PatchTransformer layer. |
Thank you for your suggestion. I get the following error: This is the code where it fails: The original version of caffe however build without any issue. Please help me figure this out. Many Thanks ! |
Build with GPU or just add declaration of Forward_gpu and Backward_gpu to the corresponding header file. Because, as the error message says, the error caused by the lack of declaration of those methods in the header. STUB_GPU outputs definitions, but doesn't output any declaration to headers. |
The issue is resolved. Thanks so much. |
Thanks for reporting. I'd really appreciate it if you could share how to resolve it for other people. |
Hi @mitmul, i resolved the above issue by declaring the backward_gpu and backward_cpu in the loss_layer.hpp where the class SoftmaxCrossEntropyLossLayer is declared. |
Thanks @smartinsert , I'm glad to hear my suggestion worked. |
Hi,
I am trying to replicate your work using caffe, but am encountering the following issue when i try to create a model.
The ssai.so has been build and is stored in the following path:
/home/ubuntu/src/ssai/lib/build/ssai.so
I am running the following command to create the models:
$ python scripts/create_models.py --seed seeds/model_seeds.json --caffe_dir $HOME/src/caffe/
and i get the following stack trace:
ubuntu@ip-172-31-30-95:~/src/ssai$ python scripts/create_models.py --seed seeds/model_seeds.json --caffe_dir $HOME/src/caffe/
Namespace(batch_size=128, caffe_dir='/home/ubuntu/src/caffe/', crop_size=64, dataset_backend='lmdb', seed='seeds/model_seeds.json')
/home/ubuntu/src/caffe/python/caffe/pycaffe.py:13: RuntimeWarning: to-Python converter for boost::shared_ptrcaffe::Net already registered; second conversion method ignored.
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
/home/ubuntu/src/caffe/python/caffe/pycaffe.py:13: RuntimeWarning: to-Python converter for boost::shared_ptrcaffe::Blob already registered; second conversion method ignored.
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
/home/ubuntu/src/caffe/python/caffe/pycaffe.py:13: RuntimeWarning: to-Python converter for boost::shared_ptrcaffe::Solver already registered; second conversion method ignored.
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
Traceback (most recent call last):
File "/home/ubuntu/src/caffe//python/draw_net.py", line 45, in
main()
File "/home/ubuntu/src/caffe//python/draw_net.py", line 39, in main
text_format.Merge(open(args.input_net_proto_file).read(), net)
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py", line 265, in Merge
return MergeLines(text.split('\n'), message)
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py", line 298, in MergeLines
_ParseOrMerge(lines, message, True)
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py", line 229, in _ParseOrMerge
_MergeField(tokenizer, message, allow_multiple_scalars)
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py", line 382, in _MergeField
_MergeField(tokenizer, sub_message, allow_multiple_scalars)
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py", line 356, in _MergeField
message_descriptor.full_name, name))
google.protobuf.text_format.ParseError: 53:3 : Message type "caffe.LayerParameter" has no field named "patch_transformer_param".
Traceback (most recent call last):
File "scripts/create_models.py", line 611, in
'models/%s/net.png' % model_name])
File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['python', '/home/ubuntu/src/caffe//python/draw_net.py', u'models/VGG_PReLU_Roads/train_test.prototxt', u'models/VGG_PReLU_Roads/net.png']' returned non-zero exit status 1
Note: I was doing this while the data download was in the progress with the bash shell/
Kindly help.
The text was updated successfully, but these errors were encountered: