Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service Bad Request Error: error reading or listing Caffe models #508

Closed
1 task done
Vulcainreo opened this issue Oct 20, 2018 · 1 comment
Closed
1 task done

Comments

@Vulcainreo
Copy link

Configuration

  • Version of DeepDetect:
    • Docker
  • Commit (shown by the server when starting):633dbcca38e047154b058a8063fd44a930e85d4c

Problem:

I would like to start the text classification example. I started the docker image the dede server is well up :

curl http://localhost:8080/info 
{"status":{"code":200,"msg":"OK"},"head":{"method":"/info","version":"0.1","branch":"master","commit":"633dbcca38e047154b058a8063fd44a930e85d4c","services":[{"mltype":"classification","name":"imageserv","description":"image classification service","mllib":"caffe","predict":true}]}}

But, with this fresh install : when I would like to create the service, I receive an error


curl -X PUT "http://localhost:8080/services/n20" -d '{
       "mllib":"caffe",
       "description":"newsgroup classification service",
       "type":"supervised",
       "parameters":{
         "input":{
           "connector":"txt"
         },
         "mllib":{
           "template":"mlp",
           "nclasses":20,
           "layers":[200,200],
           "activation":"relu"
         }
       },
       "model":{
         "templates":"../templates/caffe/",
         "repository":"models/n20"
       }
     }'

{"status":{"code":400,"msg":"BadRequest","dd_code":1006,"dd_msg":"Service Bad Request Error: error reading or listing Caffe models in repository models/n20"}}

Did I miss something during the setup ?
Thank you in advance for your help.

Best regards,
Vulcainreo

@beniz
Copy link
Collaborator

beniz commented Oct 21, 2018

Hi you need to have the model directory readable from within the docker image. Look at the docker readme how to share a volume between the docker and the host, and look at general docker doc as well. Using absolute paths is also recommended.

@beniz beniz closed this as completed Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants