This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a service | |
$ curl -X PUT "http://localhost:8080/services/myimages" -d "{\"mllib\":\"caffe\",\"description\":\"image classification service\",\"type\":\"supervised\",\"parameters\":{\"input\":{\"connector\":\"image\",\"width\":224,\"height\":224},\"mllib\":{\"template\":\"googlenet\",\"nclasses\":11}},\"model\":{\"templates\":\"../templates/caffe/\",\"repository\":\"../../models/myimages\"}}" | |
{"status":{"code":201,"msg":"Created"}} | |
Start a training | |
$ curl -X POST "http://localhost:8080/train" -d "{\"service\":\"myimages\",\"async\":true,\"parameters\":{\"mllib\":{\"gpu\":true,\"resume\":true,\"net\":{\"batch_size\":32},\"solver\":{\"test_interval\":500,\"iterations\":30000,\"base_lr\":0.001,\"stepsize\":1000,\"gamma\":0.9}},\"input\":{\"connector\":\"image\",\"test_split\":0.1,\"shuffle\":true,\"width\":224,\"height\":224},\"output\":{\"measure\":[\"acc\",\"mcll\",\"f1\"]}},\"data\":[\"../../models/imagenet_downloader\"]}" | |
{"status":{"code":201,"msg":"Created"},"head":{"method":"/train","job":1,"statu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./dede | |
DeepDetect [ commit f32a621c7cf0be9eaab4d798ee57a12dbe20b4f4 ] | |
Running DeepDetect HTTP server on localhost:8080 | |
instantiating model template googlenet | |
INFO - source=../../templates/caffe/googlenet/ | |
INFO - dest=../../models/buildings/imgnet/googlenet.prototxt | |
INFO - Initializing net from parameters: |