Open cw1204772 opened 7 years ago
So I find that it's a cv2.resize() problem
Change line83
in caffe_proc_thread.py
to
im_small = cv2.resize(frame, self.input_dims[::-1])
will solve the problem if caffe input rectangle image instead of square
@cw1204772 I've substantially refactored the tool, fixed many bugs, among them the tool ability to work on rectangular inputs instead of squares
Latest version is in https://github.com/arikpoz/deep-visualization-toolbox
While I'm testing caffe model from here: https://drive.google.com/drive/u/0/folders/0B67_d0rLRTQYZnB5ZUZpdTlxM0k (prototxt: jstl_dgd_deploy_inference.prototxt caffemodel: jstl_dgd_inference.caffemodel)
I encounter the following error message no matter my input image is 144 56 or 56 144 or 227 * 227(default ilvsrc2012 image):
After looking into the source code of this toolbox, it seems that
resize
function is causing the unmatched shape. Any solution to this problem??Btw, the setting_local.py I use is as follow: