These are chat archives for beniz/deepdetect

8th
Jul 2016
Emmanuel Benazera
@beniz
Jul 08 2016 05:57
@sangav check the input image size, it is probably a bit different than others, look at the model.json
tmeroniown
@tmeroniown
Jul 08 2016 16:14
@beniz is there an example somewhere of how to use the confusion_matrix feature?
Emmanuel Benazera
@beniz
Jul 08 2016 16:19
@tmeroniown it needs a fix, see #157. Right now you're getting the rows indexed by a number '_' class name, you need to reorder the rows with this number. This is temporary.
tmeroniown
@tmeroniown
Jul 08 2016 17:30
@beniz - I'm struggling with installing dede on a machine with opencv3. i'm getting the following error:

You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.
Call Stack (most recent call first):
CMakeLists.txt:59 (find_package)

CMake Error at CMakeLists.txt:59 (find_package):
Found package configuration file:

/usr/local/opencv-3.1.0/cmake/OpenCVConfig.cmake

but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.

anything you have encountered before?
Emmanuel Benazera
@beniz
Jul 08 2016 17:58
nop
I thought the opencv3 thingy was done with :/
see #36 and #125 if you haven't already...
tmeroniown
@tmeroniown
Jul 08 2016 18:00
yeah I did. couldnt figure it out
maybe my opencv installation is screwed up
Emmanuel Benazera
@beniz
Jul 08 2016 18:00
this is happening before the build even starts ?
tmeroniown
@tmeroniown
Jul 08 2016 18:00
yes. the CMAKE is throwing these errors
Emmanuel Benazera
@beniz
Jul 08 2016 18:01
have you tried with -DOpenCV_DIR=yourdir ?
tmeroniown
@tmeroniown
Jul 08 2016 18:01
no. where do I add that? after the CMALE command?
Emmanuel Benazera
@beniz
Jul 08 2016 18:02
you can try yes. But if your opencv3 is in /usr/local, what kind of system are you on ?
or you did install it system-wide by hand ?
I remember a struggle to get it to compile and install into my home
tmeroniown
@tmeroniown
Jul 08 2016 18:03
its in /usr/local
Emmanuel Benazera
@beniz
Jul 08 2016 18:05
on my dev machine:
/usr/share/OpenCV/OpenCVConfig.cmake (OpenCV 2 I think) and opencv-3.1.0/build/OpenCVConfig.cmake (OpenCV 3), the later being into the build repository
my hunch is that your OpenCV3 installation is not done correctly somehow. IIRC you should download it, then build it into e.g. build/ then link that with any other application
tmeroniown
@tmeroniown
Jul 08 2016 18:08
if I install a second copy wont it create a problem?
Emmanuel Benazera
@beniz
Jul 08 2016 18:09
honestly, you should install into your $HOME, not system-wide...
tmeroniown
@tmeroniown
Jul 08 2016 18:09
I didnt install it, it came pre-installed like that
Emmanuel Benazera
@beniz
Jul 08 2016 18:09
ah, then what OS are you on then ?
tmeroniown
@tmeroniown
Jul 08 2016 18:09
ubuntu
Emmanuel Benazera
@beniz
Jul 08 2016 18:09
?
tmeroniown
@tmeroniown
Jul 08 2016 18:10
its a deep learning machine that came installed like that
Emmanuel Benazera
@beniz
Jul 08 2016 18:10
lsb_release -a ?
tmeroniown
@tmeroniown
Jul 08 2016 18:10
ubuntu 14.04
If I install another copy into /home - it wont create a problem?
I dont know what global parameters in any are set
Emmanuel Benazera
@beniz
Jul 08 2016 18:13
you need OpenCV3 ?
tmeroniown
@tmeroniown
Jul 08 2016 18:13
no
but I didnt want to install opencv2 because I didnt know if they can go exist
Emmanuel Benazera
@beniz
Jul 08 2016 18:14
yeah, they should coexist because opencv2 would go into /usr/include/opencv and you can remove it via packages in all cases. I'd try that.
tmeroniown
@tmeroniown
Jul 08 2016 18:15
but then how would the DEDE CMAKE chosse between them?
Emmanuel Benazera
@beniz
Jul 08 2016 18:16
the one from /usr/include should always be used first by any software
unless you tweak something
tmeroniown
@tmeroniown
Jul 08 2016 18:16
and opencv3 wont install to /usr/include/opencv?
Emmanuel Benazera
@beniz
Jul 08 2016 18:18
on regular ubuntu it is not even packaged, so unless you build it yourself and put it there, I don't see how... but that's more system admin, I can't tell you anything that is 100% truth here
tmeroniown
@tmeroniown
Jul 08 2016 18:18
ok got it. appreciate the help!
Emmanuel Benazera
@beniz
Jul 08 2016 18:18
np
tmeroniown
@tmeroniown
Jul 08 2016 18:19
one final question - is caffe directly using open cv directly?
Emmanuel Benazera
@beniz
Jul 08 2016 18:20
yes
tmeroniown
@tmeroniown
Jul 08 2016 18:20
and it links to it during build?
Emmanuel Benazera
@beniz
Jul 08 2016 18:21
ldd build/lib/libcaffe.so | grep opencv libopencv_core.so.2.4 => /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4 (0x00007f4f90efd000) libopencv_highgui.so.2.4 => /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4 (0x00007f4f90cb3000) libopencv_imgproc.so.2.4 => /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.2.4 (0x00007f4f90828000)
tmeroniown
@tmeroniown
Jul 08 2016 18:22
ok cool. thanks alot!
tmeroniown
@tmeroniown
Jul 08 2016 21:00
@beniz I installed open cv 2.4, but I'm still having issues
its still trying to link to opencv3 for some reason
can you tell me where the FineOpenCV.cmake file is?
Emmanuel Benazera
@beniz
Jul 08 2016 21:06
sorry I can't, on my phone right now. it probably comes with cmake...
tmeroniown
@tmeroniown
Jul 08 2016 21:07
ok thx