You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I very much like the project which is capable of person search and is at the state of art as such and so dug into gain some insights out of it.
I am running CPU-only version of Caffe and when I try to run a small sample part of the given tools/demo.py I get the following error telling that it is not able to parse the prototxt. Where am I going wrong?
import argparse
import time
import os
import sys
import os.path as osp
from glob import glob
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import caffe
from mpi4py import MPI
sys.path.append('/home/aakashperson_search/lib/')
from fast_rcnn.test_probe import demo_exfeat
from fast_rcnn.test_gallery import demo_detect
from fast_rcnn.config import cfg, cfg_from_file, cfg_from_list
Hi,
I very much like the project which is capable of person search and is at the state of art as such and so dug into gain some insights out of it.
I am running CPU-only version of Caffe and when I try to run a small sample part of the given tools/demo.py I get the following error telling that it is not able to parse the prototxt. Where am I going wrong?
import argparse
import time
import os
import sys
import os.path as osp
from glob import glob
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import caffe
from mpi4py import MPI
sys.path.append('/home/aakashperson_search/lib/')
from fast_rcnn.test_probe import demo_exfeat
from fast_rcnn.test_gallery import demo_detect
from fast_rcnn.config import cfg, cfg_from_file, cfg_from_list
caffe.set_mode_cpu()
gallery_imgs = sorted(glob('demo/gallery*.jpg'))
query_img = 'demo/query.jpg'
query_roi = [0, 0, 466, 943] # [x1, y1, x2, y2]
gallery_def = '/home/aakash/person_search/models/psdb/resnet50/eval_gallery_copy.prototxt'
caffemodel = '/home/aakash/person_search/output/psdb_train/resnet50/resnet50_iter_50000.caffemodel'
net = caffe.Net(gallery_def, caffemodel, caffe.TEST)
WARNING: Logging before InitGoogleLogging() is written to STDERR
W0721 08:22:42.144798 4881 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W0721 08:22:42.144839 4881 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W0721 08:22:42.144855 4881 _caffe.cpp:142] Net('/home/aakash/person_search/models/psdb/resnet50/eval_gallery_copy.prototxt', 1, weights='/home/aakash/person_search/output/psdb_train/resnet50/resnet50_iter_50000.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 1:11: Message type "caffe.NetParameter" has no field named "mem_param".
F0721 08:22:42.146420 4881 upgrade_proto.cpp:90] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /home/aakash/person_search/models/psdb/resnet50/eval_gallery_copy.prototxt
*** Check failure stack trace: ***
[instance-8:04881] *** Process received signal ***
[instance-8:04881] Signal: Aborted (6)
[instance-8:04881] Signal code: (-6)
[instance-8:04881] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f054ba2d390]
[instance-8:04881] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f054b687428]
[instance-8:04881] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f054b68902a]
[instance-8:04881] [ 3] /usr/lib/x86_64-linux-gnu/libglog.so.0(+0x9e49)[0x7f0518fe9e49]
[instance-8:04881] [ 4] /usr/lib/x86_64-linux-gnu/libglog.so.0(+0xb5cd)[0x7f0518feb5cd]
[instance-8:04881] [ 5] /usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage9SendToLogEv+0x283)[0x7f0518fed433]
[instance-8:04881] [ 6] /usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage5FlushEv+0xbb)[0x7f0518feb15b]
[instance-8:04881] [ 7] /usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google15LogMessageFatalD2Ev+0xe)[0x7f0518fede1e]
[instance-8:04881] [ 8] /home/aakash/caffe/build/lib/libcaffe.so.1.0.0(_ZN5caffe30ReadNetParamsFromTextFileOrDieERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_12NetParameterE+0xb1)[0x7f0519c61be1]
[instance-8:04881] [ 9] /home/aakash/caffe/build/lib/libcaffe.so.1.0.0(_ZN5caffe3NetIfEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_5PhaseEiPKSt6vectorIS7_SaIS7_EE+0x542)[0x7f0519c336f2]
[instance-8:04881] [10] /home/aakash/caffe/python/caffe/_caffe.so(_ZN5caffe13Net_Init_LoadENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_i+0x19c)[0x7f051a02452c]
[instance-8:04881] [11] /home/aakash/caffe/python/caffe/_caffe.so(ZN5boost6python7objects26signature_py_function_implINS0_6detail6callerIPFNS_10shared_ptrIN5caffe3NetIfEEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESF_iENS3_18constructor_policyINS0_21default_call_policiesEEENS_3mpl7vector4IS9_SF_SF_iEEEENSL_6v_itemIvNSP_INS0_3api6objectENSL_6v_maskISN_Li1EEELi1EEELi1EEEEclEP7_objectSY+0x1c3)[0x7f051a041bf3]
[instance-8:04881] [12] /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0(ZNK5boost6python7objects8function4callEP7_objectS4+0x26d)[0x7f051887d5cd]
[instance-8:04881] [13] /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0(+0x297c8)[0x7f051887d7c8]
[instance-8:04881] [14] /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0(_ZN5boost6python21handle_exception_implENS_9function0IvEE+0x73)[0x7f0518885613]
[instance-8:04881] [15] /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0(+0x26999)[0x7f051887a999]
[instance-8:04881] [16] /usr/bin/python[0x4eebee]
[instance-8:04881] [17] /usr/bin/python[0x4ee7f6]
[instance-8:04881] [18] /usr/bin/python[0x4aa9ab]
[instance-8:04881] [19] /usr/bin/python(PyEval_EvalFrameEx+0x578f)[0x4c15bf]
[instance-8:04881] [20] /usr/bin/python(PyEval_EvalCodeEx+0x306)[0x4b9ab6]
[instance-8:04881] [21] /usr/bin/python(PyEval_EvalFrameEx+0x3c5d)[0x4bfa8d]
[instance-8:04881] [22] /usr/bin/python(PyEval_EvalCodeEx+0x306)[0x4b9ab6]
[instance-8:04881] [23] /usr/bin/python(PyEval_EvalFrameEx+0x58b7)[0x4c16e7]
[instance-8:04881] [24] /usr/bin/python(PyEval_EvalCodeEx+0x306)[0x4b9ab6]
[instance-8:04881] [25] /usr/bin/python(PyEval_EvalFrameEx+0x58b7)[0x4c16e7]
[instance-8:04881] [26] /usr/bin/python(PyEval_EvalCodeEx+0x306)[0x4b9ab6]
[instance-8:04881] [27] /usr/bin/python[0x4d55f3]
[instance-8:04881] [28] /usr/bin/python(PyObject_Call+0x3e)[0x4a577e]
[instance-8:04881] [29] /usr/bin/python(PyEval_EvalFrameEx+0x2f0d)[0x4bed3d]
[instance-8:04881] *** End of error message ***
The text was updated successfully, but these errors were encountered: