Skip to content

Commit

Permalink
refactor: centralize edge_orchestrator conf as JSON only
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptiste O'Jeanson committed Sep 7, 2023
1 parent 23e7d72 commit 8f70696
Show file tree
Hide file tree
Showing 69 changed files with 1,286 additions and 759 deletions.
65 changes: 65 additions & 0 deletions edge_orchestrator/config/.active_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"infra": {
"binary_storage": {
"type": "filesystem",
"params": {
"src_directory": "/tmp/vio/edge_orchestrator/data/storage"
}
},
"metadata_storage": {
"type": "filesystem"
},
"mode1_forward": {
"type": "fake"
},
"telemetry_sink": {
"type": "fake"
},
"cameras": [
{
"name": "camera_#1",
"type": "fake",
"source": "marker_images",
"position": "back",
"exposition": 100
}
]
},
"domain": {
"camera_rules": [
{
"name": "camera_#1",
"models_graph": [
{
"name": "marker_quality_control",
"category": "classification",
"version": "1",
"class_names": [
"OK",
"KO"
],
"image_resolution": [
224,
224
],
"depends_on": []
}
],
"rule": {
"name": "expected_label_rule",
"parameters": {
"expected_label": [
"OK"
]
}
}
}
],
"item_rule": {
"name": "min_threshold_KO_rule",
"params": {
"threshold": 1
}
}
}
}
30 changes: 26 additions & 4 deletions edge_orchestrator/config/inventory.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
{
"binary_storages": [
"azure_container",
"filesystem",
"gcp_bucket",
"in_memory"
],
"cameras": [
"fake",
"pi_camera",
"usb_camera"
],
"metadata_storages": [
"azure_container",
"filesystem",
"gcp_bucket",
"in_memory",
"mongo_db"
],
"model_forwards": [
"fake",
"tf_serving"
],
"telemetry_sinks": [
"azure_iot_hub",
"fake",
"postgresql"
],
"models": {
"marker_quality_control": {
"category": "classification",
"version": 1,
"version": "1",
"class_names": [
"OK",
"KO"
Expand All @@ -19,7 +41,7 @@
},
"pin_detection": {
"category": "classification",
"version": 1,
"version": "1",
"class_names": [
"OK",
"NOK"
Expand All @@ -31,7 +53,7 @@
},
"mobilenet_ssd_v2_coco": {
"category": "object_detection",
"version": 1,
"version": "1",
"class_names_path": "coco_labels_originals.txt",
"output": {
"boxes_coordinates": "detection_boxes",
Expand All @@ -46,7 +68,7 @@
},
"mobilenet_ssd_v2_face": {
"category": "object_detection",
"version": 1,
"version": "1",
"class_names_path": "face_labels.txt",
"output": {
"boxes_coordinates": "detection_boxes",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,63 @@
{
"cameras": {
"camera_id4": {
"type": "fake",
"source": "marker_images",
"position": "back",
"exposition": 100,
"models_graph": {
"model_id4": {
"name": "marker_quality_control",
"depends_on": []
}
},
"camera_rule": {
"name": "expected_label_rule",
"parameters": {
"expected_label": ["OK"]
}
"infra": {
"binary_storage": {
"type": "filesystem",
"params": {
"src_directory": "/tmp/vio/edge_orchestrator/data/storage"
}
},
"metadata_storage": {
"type": "filesystem"
},
"model_forward": {
"type": "fake"
},
"telemetry_sink": {
"type": "fake"
},
"cameras": {
"camera_#1": {
"type": "fake",
"source": "marker_images",
"position": "back",
"exposition": 100
}
}
},
"item_rule": {
"name": "min_threshold_KO_rule",
"parameters": {
"threshold": 1
"domain": {
"cameras": {
"camera_#1": {
"models_graph": {
"model_#4": {
"name": "marker_quality_control",
"category": "classification",
"version": "1",
"class_names": [
"OK",
"KO"
],
"image_resolution": [
224,
224
],
"depends_on": []
}
},
"camera_rule": {
"name": "expected_label_rule",
"parameters": {
"expected_label": [
"OK"
]
}
}
}
},
"item_rule": {
"name": "min_threshold_KO_rule",
"parameters": {
"threshold": 1
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
{
"cameras": {
"camera_id3": {
"camera_#3": {
"type": "pi_camera",
"position": "front",
"exposition": 100,
"models_graph": {
"model_id4": {
"model_#4": {
"name": "marker_quality_control",
"category": "classification",
"version": "1",
"class_names": [
"OK",
"KO"
],
"image_resolution": [
224,
224
],
"depends_on": []
}
},
"camera_rule": {
"name": "expected_label_rule",
"parameters": {
"expected_label": ["OK"]
"expected_label": [
"OK"
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
{
"cameras": {
"camera_id3": {
"camera_#3": {
"type": "usb_camera",
"position": "front",
"exposition": 100,
"source": "/dev/video0",
"models_graph": {
"model_id4": {
"model_#4": {
"name": "marker_quality_control",
"category": "classification",
"version": "1",
"class_names": [
"OK",
"KO"
],
"image_resolution": [
224,
224
],
"depends_on": []
}
},
"camera_rule": {
"name": "expected_label_rule",
"parameters": {
"expected_label": ["OK"]
"expected_label": [
"OK"
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,38 +1,77 @@
{
"binary_storage": {
"type": "filesystem",
"params": {
"src_directory": "/tmp/vio/edge_orchestrator/data/storage"
}
},
"metadata_storage": {
"type": "filesystem"
},
"model_forward": {
"type": "fake"
},
"telemetry_sink": {
"type": "fake"
},
"cameras": {
"camera_id3": {
"camera_#1": {
"type": "fake",
"source": "marker_images",
"position": "back",
"exposition": 100,
"models_graph": {
"model_id4": {
"model_#4": {
"name": "marker_quality_control",
"category": "classification",
"version": "1",
"class_names": [
"OK",
"KO"
],
"image_resolution": [
224,
224
],
"depends_on": []
}
},
"camera_rule": {
"name": "expected_label_rule",
"parameters": {
"expected_label": ["OK"]
"expected_label": [
"OK"
]
}
}
},
"camera_id4": {
"camera_#4": {
"type": "fake",
"source": "marker_images",
"position": "back",
"exposition": 100,
"models_graph": {
"model_id4": {
"model_#4": {
"name": "marker_quality_control",
"category": "classification",
"version": "1",
"class_names": [
"OK",
"KO"
],
"image_resolution": [
224,
224
],
"depends_on": []
}
},
"camera_rule": {
"name": "expected_label_rule",
"parameters": {
"expected_label": ["OK"]
"expected_label": [
"OK"
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
{
"cameras": {
"camera_id3": {
"camera_#3": {
"type": "usb_camera",
"source": "/dev/video0",
"position": "front",
"exposition": 100,
"models_graph": {
"model_id4": {
"model_#4": {
"name": "pin_detection",
"category": "classification",
"version": "1",
"class_names": [
"OK",
"NOK"
],
"image_resolution": [
224,
224
],
"depends_on": []
}
},
Expand Down
Loading

0 comments on commit 8f70696

Please sign in to comment.