Table of Contents

WARNING: The Cloud is retired

The site is just kept for historical reasons

Neuron Cloud API / Enrichment Services

tower01.picalike.corpex-kunden.de:7042/predict

url: http://tower01.picalike.corpex-kunden.de:7042/predict
url: http://dev01.picalike.corpex-kunden.de:7042/predict
oder LB: http://neuron-cloud.lb.int.picalike.corpex-kunden.de/predict
host: tower01.picalike.corpex-kunden.de
port: 7042
service name: /predict
method: POST
Test-Service: http://pci01.picalike.corpex-kunden.de:12345 (im zookeeper, wird hin und wieder umgezogen)
parameters should be passed as json (requests json parameter)

Host

Right now (March 2020) the setup is as follows:

git

https://git.picalike.corpex-kunden.de/picalike/neuron_cloud_zmq_lb
https://git.picalike.corpex-kunden.de/picalike/neuron_cloud_master
https://git.picalike.corpex-kunden.de/picalike/neuron_cloud_worker

How to put a new model in live system

Change in “neuron_cloud_3.py” (master), in /predict endpoint → Add a the new model name in the beginning, in the “for in chuncks” and in pred_crops.

For the workers: (All h5 are already in the workers) Copy the directory from some existing model and rename with the new model name. Put the h5, labels and mybe some new files (custom loss usw..) in all workers and in the new copied file.

Now, we need to change the router.py, in line 60 with, the new get semi_net-name And in the line 159 a new if

deployment

Masters, Workers and Broker will start as Docker images, deployment works as allways (config.sh, build.sh, push.sh, deploy.sh)

parameters

fiels in json:

optional fiels in json:

out

:!: Detailed description of the detection-net*_boxes missing! (relative coordinates? absolute?, (x1, x2) = top left? (x1, y1) = top left?

{
  "images_without_error":{
    *url1*:{
      "attributes": [...],
      "categories": [...],
      "*detection-net*_boxes": [
         {
          'x1': ...,
          'x2': ...,
          'y1': ...,
          'y2': ...,
          'class': ...,
          'score': ...,
          ~optional~'supressed_by_iou': True,~
          ~optional~'crop_predictions':{
            "attributes": [...],
             categories": [...],
          }
         },
         ...
      ],
      "features": [...] #not if bignet is used
    },
    *url2*:{...}
  },
  "images_with_fatal_error":{...},
  "urls_with_image_cloud_error":{...}
}