fix import path problem in deployment.py
This commit is contained in:
parent
af9adc8e82
commit
c94eb5ee30
@ -330,7 +330,7 @@ class MultiDongle:
|
|||||||
# kp.core.set_timeout(device_group=self.device_group, milliseconds=5000)
|
# kp.core.set_timeout(device_group=self.device_group, milliseconds=5000)
|
||||||
# print(' - Success')
|
# print(' - Success')
|
||||||
|
|
||||||
if self.upload_fw:
|
# if self.upload_fw:
|
||||||
try:
|
try:
|
||||||
print('[Upload Firmware]')
|
print('[Upload Firmware]')
|
||||||
kp.core.load_firmware_from_file(device_group=self.device_group,
|
kp.core.load_firmware_from_file(device_group=self.device_group,
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"id": "0x1131773d0",
|
"id": "0x1b8706d5710",
|
||||||
"name": "Input Node",
|
"name": "Input Node",
|
||||||
"type": "ExactInputNode",
|
"type": "ExactInputNode",
|
||||||
"pos": [
|
"pos": [
|
||||||
@ -19,24 +19,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "0x12b4ae9d0",
|
"id": "0x1b8706f4bd0",
|
||||||
"name": "Model Node",
|
"name": "Model Node",
|
||||||
"type": "ExactModelNode",
|
"type": "ExactModelNode",
|
||||||
"pos": [
|
"pos": [
|
||||||
295.0,
|
245.18958624423732,
|
||||||
292.0
|
292.00000000000006
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"dongle_series": "520",
|
"dongle_series": "520",
|
||||||
"num_dongles": 1,
|
"num_dongles": 1,
|
||||||
"model_path": "",
|
"model_path": "C:/Users/mason/AppData/Local/Kneron_Academy/utils/yolov5s/yolov5s/kl520_20005_yolov5-noupsample_w640h640.nef",
|
||||||
"scpu_fw_path": "",
|
"scpu_fw_path": "C:/Users/mason/Downloads/kneron_plus_v3.1.2/kneron_plus/res/firmware/KL520/fw_scpu.bin",
|
||||||
"ncpu_fw_path": "",
|
"ncpu_fw_path": "C:/Users/mason/Downloads/kneron_plus_v3.1.2/kneron_plus/res/firmware/KL520/fw_ncpu.bin",
|
||||||
"port_id": ""
|
"port_id": "6, 32"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "0x12b4aff50",
|
"id": "0x1b8706f6790",
|
||||||
"name": "Output Node",
|
"name": "Output Node",
|
||||||
"type": "ExactOutputNode",
|
"type": "ExactOutputNode",
|
||||||
"pos": [
|
"pos": [
|
||||||
@ -44,38 +44,65 @@
|
|||||||
430.1696952829989
|
430.1696952829989
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"output_type": "File",
|
"output_type": "Display",
|
||||||
"format": "JSON",
|
"format": "JSON",
|
||||||
"destination": "",
|
"destination": "C:/Users/mason/Downloads/test.json",
|
||||||
"save_interval": 1.0
|
"save_interval": 1.0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "0x12b4c8990",
|
"id": "0x1b8706f7950",
|
||||||
"name": "Preprocess Node",
|
"name": "Preprocess Node",
|
||||||
"type": "ExactPreprocessNode",
|
"type": "ExactPreprocessNode",
|
||||||
"pos": [
|
"pos": [
|
||||||
230.0,
|
575.7830427160366,
|
||||||
190.0
|
150.8128173029918
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"resize_width": 112,
|
"resize_width": 144,
|
||||||
"resize_height": 112,
|
"resize_height": 144,
|
||||||
"operations": "resize,normalize"
|
"operations": "resize,normalize"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "0x1b870700c90",
|
||||||
|
"name": "Postprocess Node",
|
||||||
|
"type": "ExactPostprocessNode",
|
||||||
|
"pos": [
|
||||||
|
272.09359134850405,
|
||||||
|
474.2416550230502
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"output_format": "JSON",
|
||||||
|
"confidence_threshold": 0.5,
|
||||||
|
"nms_threshold": 0.4,
|
||||||
|
"max_detections": 100
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"connections": [
|
"connections": [
|
||||||
{
|
{
|
||||||
"input_node": "0x12b4ae9d0",
|
"input_node": "0x1b8706f7950",
|
||||||
"input_port": "input",
|
"input_port": "input",
|
||||||
"output_node": "0x1131773d0",
|
"output_node": "0x1b8706d5710",
|
||||||
"output_port": "output"
|
"output_port": "output"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input_node": "0x12b4aff50",
|
"input_node": "0x1b870700c90",
|
||||||
"input_port": "input",
|
"input_port": "input",
|
||||||
"output_node": "0x12b4ae9d0",
|
"output_node": "0x1b8706f4bd0",
|
||||||
|
"output_port": "output"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input_node": "0x1b8706f4bd0",
|
||||||
|
"input_port": "input",
|
||||||
|
"output_node": "0x1b8706f7950",
|
||||||
|
"output_port": "output"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input_node": "0x1b8706f6790",
|
||||||
|
"input_port": "input",
|
||||||
|
"output_node": "0x1b870700c90",
|
||||||
"output_port": "output"
|
"output_port": "output"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@ -37,16 +37,17 @@ from PyQt5.QtGui import QFont, QColor, QPalette, QImage, QPixmap
|
|||||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'core', 'functions'))
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'core', 'functions'))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from mflow_converter import MFlowConverter, PipelineConfig
|
from ...core.functions.mflow_converter import MFlowConverter, PipelineConfig
|
||||||
CONVERTER_AVAILABLE = True
|
CONVERTER_AVAILABLE = True
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
print(f"Warning: MFlow converter not available: {e}")
|
print(f"Warning: MFlow converter not available: {e}")
|
||||||
CONVERTER_AVAILABLE = False
|
CONVERTER_AVAILABLE = False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from InferencePipeline import InferencePipeline
|
from ...core.functions.Multidongle import MultiDongle
|
||||||
from Multidongle import MultiDongle
|
from ...core.functions.InferencePipeline import InferencePipeline
|
||||||
from workflow_orchestrator import WorkflowOrchestrator
|
from ...core.functions.workflow_orchestrator import WorkflowOrchestrator
|
||||||
|
# from workflow_orchestrator import WorkflowOrchestrator
|
||||||
PIPELINE_AVAILABLE = True
|
PIPELINE_AVAILABLE = True
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
print(f"Warning: Pipeline system not available: {e}")
|
print(f"Warning: Pipeline system not available: {e}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user