wai.annotations plugin for making predictions via models communication through Redis backend.
The manual is available here:
https://ufdl.cms.waikato.ac.nz/wai-annotations-manual/
Makes image classification predictions via Redis backend, passing in an image and receiving JSON predictions back (at least one of 'label: probability'). Predictions example: {"dog": 0.9, "cat": 0.1}
- Image Classification Domain
usage: redis-predict-ic [--channel-in CHANNEL_IN] [--channel-out CHANNEL_OUT] [-d REDIS_DB] [-h REDIS_HOST] [-p REDIS_PORT] [-t TIMEOUT] [-v]
optional arguments:
--channel-in CHANNEL_IN
the Redis channel on which to receive predictions.
--channel-out CHANNEL_OUT
the Redis channel to send the images out
-d REDIS_DB, --redis-db REDIS_DB
the database to use
-h REDIS_HOST, --redis-host REDIS_HOST
the Redis server to connect to
-p REDIS_PORT, --redis-port REDIS_PORT
the port the Redis server is running on
-t TIMEOUT, --timeout TIMEOUT
the timeout in seconds to wait for a prediction to arrive
-v, --verbose whether to output debugging information.
Makes image segmentation predictions via Redis backend, passing in an image and receiving an image with predicted segmentations.
- Image Segmentation Domain
usage: redis-predict-is [--channel-in CHANNEL_IN] [--channel-out CHANNEL_OUT]
[--image-format IMAGE_FORMAT] --labels LABEL [LABEL ...] [-d REDIS_DB]
[-h REDIS_HOST] [-p REDIS_PORT] [-t TIMEOUT] [-v]
optional arguments:
--channel-in CHANNEL_IN
the Redis channel on which to receive predictions. (default: predictions)
--channel-out CHANNEL_OUT
the Redis channel to send the images out (default: images)
--image-format IMAGE_FORMAT
the format of the image that comes back as prediction:
indexedpng,bluechannel,grayscale (default: indexedpng)
--labels LABEL [LABEL ...]
specifies the labels for each index (default: None)
-d REDIS_DB, --redis-db REDIS_DB
the database to use (default: 0)
-h REDIS_HOST, --redis-host REDIS_HOST
the Redis server to connect to (default: localhost)
-p REDIS_PORT, --redis-port REDIS_PORT
the port the Redis server is running on (default: 6379)
-t TIMEOUT, --timeout TIMEOUT
the timeout in seconds to wait for a prediction to arrive (default: 5.0)
-v, --verbose whether to output debugging information. (default: False)
Makes object detection predictions via Redis backend, passing in an image and receiving OPEX predictions back: https://github.com/WaikatoLink2020/objdet-predictions-exchange-format
- Image Object-Detection Domain
usage: redis-predict-od [--channel-in CHANNEL_IN] [--channel-out CHANNEL_OUT] [--key-label KEY_LABEL] [--key-score KEY_SCORE] [-d REDIS_DB] [-h REDIS_HOST] [-p REDIS_PORT] [-t TIMEOUT] [-v]
optional arguments:
--channel-in CHANNEL_IN
the Redis channel on which to receive predictions.
--channel-out CHANNEL_OUT
the Redis channel to send the images out
--key-label KEY_LABEL
the meta-data key in the annotations to use for storing the label.
--key-score KEY_SCORE
the meta-data key in the annotations to use for storing the prediction score.
-d REDIS_DB, --redis-db REDIS_DB
the database to use
-h REDIS_HOST, --redis-host REDIS_HOST
the Redis server to connect to
-p REDIS_PORT, --redis-port REDIS_PORT
the port the Redis server is running on
-t TIMEOUT, --timeout TIMEOUT
the timeout in seconds to wait for a prediction to arrive
-v, --verbose whether to output debugging information.