Skip to content
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

Could not open file ./prediction/deploy.prototxt #6

Open
Victoria2333 opened this issue Sep 29, 2017 · 6 comments
Open

Could not open file ./prediction/deploy.prototxt #6

Victoria2333 opened this issue Sep 29, 2017 · 6 comments

Comments

@Victoria2333
Copy link

I changed my caffe path to /home/han/src/caffe in./bashrc,
but when i run prediction_json.py,there is still error:
han@han:~/Ask_Attend_and_Answer-master/example/prediction$ python predict_json.py
WARNING: Logging before InitGoogleLogging() is written to STDERR
W0929 20:04:09.720854 20851 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W0929 20:04:09.720896 20851 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W0929 20:04:09.720903 20851 _caffe.cpp:142] Net('./prediction/deploy.prototxt', 1, weights='./prediction/mm_iter_243000.caffemodel')
Traceback (most recent call last):
File "predict_json.py", line 28, in
lstmnet = caffe.Net(DEPLOY, MODEL, caffe.TEST)
RuntimeError: Could not open file ./prediction/deploy.prototxt
Could you please give me some advice on it?

@huijuan88
Copy link
Collaborator

huijuan88 commented Sep 29, 2017 via email

@Victoria2333
Copy link
Author

Victoria2333 commented Sep 29, 2017

thanks,i just tried just the minute when i got your reply,and it occurred:
han@han:~/Ask_Attend_and_Answer-master/example$ python ./prediction/predict_json.py
WARNING: Logging before InitGoogleLogging() is written to STDERR
W0929 21:15:31.683986 21642 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W0929 21:15:31.684031 21642 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W0929 21:15:31.684039 21642 _caffe.cpp:142] Net('./prediction/deploy.prototxt', 1, weights='./prediction/mm_iter_243000.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 2180:18: Message type "caffe.LayerParameter" has no field named "word_sum_param".
F0929 21:15:31.723026 21642 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: ./prediction/deploy.prototxt
*** Check failure stack trace: ***
Aborted (core dumped)
It seems thhere is some error in deploy.prototxt,because i found field named "word_sum_param" in layer params.

@huijuan88
Copy link
Collaborator

huijuan88 commented Sep 29, 2017 via email

@Victoria2333
Copy link
Author

@ huijuan88 ,sorry to bother, I read your paper <<Ask,Attend and Answer>>, I see there are Absolute position experiment in Fig.3 , Relative position experiment in Fig.4 ,Visualization of the spatial attention weights in the SMem-VQA model in Fig.5 and Fig.6 either.
And i couldn't find them in your project,and your test accuracy...
Waiting for your reply~Thank you~~

@huijuan88
Copy link
Collaborator

huijuan88 commented Sep 30, 2017 via email

@Victoria2333
Copy link
Author

Victoria2333 commented Oct 1, 2017

@huijuan88 ,and what about your other experiments??
Thanks for your help~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants