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

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/\"}}"
  • 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\":[\"\"]}"
    {"status":{"code":200,"msg":"OK"},"head":{"method":"/predict","time":852.0,"service":"imageserv"},"body":{"predictions":{"uri":"","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

Comments (4)
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.


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

9 months ago

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?

9 months ago

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