Skip to main content

Python Library for Nodes which connect to the Zauberzeug Learning Loop

Project description

Learning Loop Node

This Python library helps you to write your own Detection Nodes, Training Nodes and Converter Nodes for the Zauberzeug Learning Loop.

General Usage

You can configure connection to the learning loop by specifying the following environment variables before starting:

  • SERVER_BASE_URL=https://learning-loop.ai
  • WEBSOCKET_BASE_URL=wss://learning-loop.ai
  • ORGANIZATION=
  • PROJECT=
  • USERNAME=
  • PASSWORD=

Detector Node

Trainer Node

Converter Node

A Conveter Node converts models from one format into another.

How to test the operability?

Assumend there is a Converter Node which converts models of format 'format_a' into 'format_b'. Upload a model with curl --request POST -F 'files=@my_model.zip' https://learning-loop.ai/api/zauberzeug/projects/demo/format_a The model should now be available for the format 'format_a' curl "https://learning-loop.ai/api/zauberzeug/projects/demo/models?format=format_a"

{
  "models": [
    {
      "id": "3c20d807-f71c-40dc-a996-8a8968aa5431",
      "version": "4.0",
      "formats": [
        "format_a"
      ],
      "created": "2021-06-01T06:28:21.289092",
      "comment": "uploaded at 2021-06-01 06:28:21.288442",
      ...
    }
  ]
}

but not in the format_b curl "https://learning-loop.ai/api/zauberzeug/projects/demo/models?format=format_b"

{
  "models": []
}

Connect the Node to the learning loop by simply starting the container. After a short time the converted Model should be available as well. curl https://learning-loop.ai/api/zauberzeug/projects/demo/models?format=format_b

{
  "models": [
    {
      "id": "3c20d807-f71c-40dc-a996-8a8968aa5431",
      "version": "4.0",
      "formats": [
        "format_a",
        "format_b",
      ],
      "created": "2021-06-01T06:28:21.289092",
      "comment": "uploaded at 2021-06-01 06:28:21.288442",
      ...
    }
  ]
}

Project details


Release history Release notifications | RSS feed

This version

0.1.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

learning_loop_node-0.1.9.tar.gz (12.9 kB view hashes)

Uploaded Source

Built Distribution

learning_loop_node-0.1.9-py3-none-any.whl (20.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page