Public Repository

Last pushed: 2 months ago
Short Description
Official DeepDetect CPU image
Full Description

Deep learning server & API / Official image

Use as follows:

docker pull beniz/deepdetect_cpu
docker run -d -p 8080:8080 beniz/deepdetect_cpu
curl http://localhost:8080/info
{"status":{"code":200,"msg":"OK"},"head":{"method":"/info","version":"0.1","branch":"master","commit":"c8556f0b3e7d970bcd9861b910f9eae87cfd4b0c","services":[]}}

The image embeds googlenet and resnet_50 image classification models, see how to use them without effort below.

Here is how to do a simple image classification service and prediction test:

  • service creation
    curl -X PUT "http://localhost:8080/services/imageserv" -d "{\"mllib\":\"caffe\",\"description\":\"image classification service\",\"type\":\"supervised\",\"parameters\":{\"input\":{\"connector\":\"image\"},\"mllib\":{\"nclasses\":1000}},\"model\":{\"repository\":\"/opt/models/ggnet/\"}}"
    {"status":{"code":201,"msg":"Created"}}
    
  • image classification
    curl -X POST "http://localhost:8080/predict" -d "{\"service\":\"imageserv\",\"parameters\":{\"input\":{\"width\":224,\"height\":224},\"output\":{\"best\":3},\"mllib\":{\"gpu\":false}},\"data\":[\"http://i.ytimg.com/vi/0vxOhd4qlnA/maxresdefault.jpg\"]}"
    {"status":{"code":200,"msg":"OK"},"head":{"method":"/predict","time":852.0,"service":"imageserv"},"body":{"predictions":{"uri":"http://i.ytimg.com/vi/0vxOhd4qlnA/maxresdefault.jpg","classes":[{"prob":0.2255125343799591,"cat":"n03868863 oxygen mask"},{"prob":0.20917612314224244,"cat":"n03127747 crash helmet"},{"last":true,"prob":0.07399296760559082,"cat":"n03379051 football helmet"}]}}}
    

To look at server logs, use

docker logs -f <container name>

where <container name> can be obtained via docker ps

Docker Pull Command
Owner
beniz

Comments (4)
whelanp
6 months ago

Quick question I followed your instructions and I get the following.

docker: Error response from daemon: linux spec user: unable to find user dd: no matching entries in passwd file.

I am running my container on windows 10 professional if that is relevant.

Thanks
P

beniz
8 months ago

There's no password for user dd. To access internals, you need to boot the container with a root shell, see Docker documentation and https://github.com/beniz/deepdetect/tree/master/docker

giabar
9 months ago

Hi,
the service creation is working but image classification give me this error:

{"status":{"code":400,"msg":"BadRequest","dd_code":1006,"dd_msg":"Service Bad Request Error"}}

could you help me?

giabar
9 months ago

Hi, which is the password of user dd ???