Tensorflow
Last updated
Was this helpful?
Was this helpful?
cmake -DFLB_FILTER_TENSORFLOW=On -DTensorflow_DIR=<AddressOfTensorflowSourceCode> ...fluent-bit -i mqtt -p 'tag=mqtt.data' -F tensorflow -m '*' -p 'input_field=image' -p 'model_file=/home/user/model.tflite' -p 'include_input_fields=false' -p 'normalization_value=255' -o stdout[2020/08/04 20:00:00] [ info] Tensorflow Lite interpreter created!
[2020/08/04 20:00:00] [ info] [tensorflow] ===== input #1 =====
[2020/08/04 20:00:00] [ info] [tensorflow] type: FLOAT32 dimensions: {1, 224, 224, 3}
[2020/08/04 20:00:00] [ info] [tensorflow] ===== output #1 ====
[2020/08/04 20:00:00] [ info] [tensorflow] type: FLOAT32 dimensions: {1, 2}service:
flush: 1
daemon: off
log_level: info
pipeline:
inputs:
- name: mqtt
tag: mqtt.data
filters:
- name: tensorflow
match: mqtt.data
input_field: image
model_file: /home/m/model.tflite
include_input_fields: false
normalization_value: 255
outputs:
- name: stdout
match: '*'[SERVICE]
Flush 1
Daemon Off
Log_Level info
[INPUT]
Name mqtt
Tag mqtt.data
[FILTER]
Name tensorflow
Match mqtt.data
Input_Field image
Model_File /home/m/model.tflite
Include_Input_Fields false
Normalization_Value 255
[OUTPUT]
Name stdout
Match *