These are chat archives for beniz/deepdetect

3rd
Feb 2016
Dawid Wolski
@merito
Feb 03 2016 07:45

Hi, thank you for the response. Directory looks like
-rw-r--r-- 1 devadmin devadmin 53533754 lut 2 11:35 bvlc_googlenet.caffemodel

-rw-r--r-- 1 devadmin devadmin 35565 lut 2 11:48 corresp.txt

-rw-r--r-- 1 devadmin devadmin 35886 lut 2 15:22 deploy.prototxt

-rw-r--r-- 1 devadmin devadmin 40775 lut 2 15:22 googlenet.prototxt

-rw-r--r-- 1 devadmin devadmin 295 lut 2 15:22 googlenet_solver.prototxt

-rw-r--r-- 1 devadmin devadmin 1620 lut 2 15:22 model.json
These files are downloaded using download_model_binary.py script

Emmanuel Benazera
@beniz
Feb 03 2016 07:50
OK, so we need to do some basic checks here: what commit are you on ? are you using a GPU ? what is the memory of the GPU ?
Dawid Wolski
@merito
Feb 03 2016 07:58
My commit is f32a621c7cf0be9eaab4d798ee57a12dbe20b4f4, I don't use GPU
Emmanuel Benazera
@beniz
Feb 03 2016 07:59
How much RAM do you have ?
Dawid Wolski
@merito
Feb 03 2016 07:59
2 GB
~1,3 GB free
Emmanuel Benazera
@beniz
Feb 03 2016 08:01
just tested on my machine: takes 15% of 8GB ~= 1.2 GB, so this might well be the culprit
Also, are you saying that the first call fails, and that the second call returns some prediction ?
Dawid Wolski
@merito
Feb 03 2016 08:22
Yes, it return always the firsy class with id 0
first*
for example for imgnet it is "n01440764 tench, Tinca tinca"
Emmanuel Benazera
@beniz
Feb 03 2016 08:34
My leading hypothesis is that this is the memory issue: the net doesn't get fully loaded and aborts, and subsequent calls wrongly use that mangled net
Dawid Wolski
@merito
Feb 03 2016 08:35
OK, I'll try on another computer
Dawid Wolski
@merito
Feb 03 2016 09:34
It works on computer with 8 GB RAM, so the problem may be related to the memory
But still it is strange to return message with code 200 when server is crashed
Emmanuel Benazera
@beniz
Feb 03 2016 09:42
yeah, there's the first code 500 message, but since it is supposed to be stateless, I agree that the server should continue to return code 500, and not code 200.
the underlying caffe lib is sort of tricky though, but I'll see what I can do
@merito if you'd like to open a ticket with a short description of the issue, that too low memory first correctly yields code 500, but then return code 200, I'd appreciate it
Dawid Wolski
@merito
Feb 03 2016 09:44
OK, I'll do that
Emmanuel Benazera
@beniz
Feb 03 2016 15:08
thanks