@@ -2,61 +2,65 @@ client:
2
2
# the source video
3
3
source :
4
4
video_path : ./video_data/dayroad.mp4
5
- max_count : 120
5
+ max_count : 5
6
6
rtsp :
7
7
flag : False
8
8
account : your account
9
9
password : your password
10
10
ip_address : you camera ip
11
11
channel : 1
12
- # the frame interval
12
+ # the frame interval
13
13
interval : 2
14
- # the difference feature (pixel, edge, area, corner).
14
+ # the difference feature (pixel, edge, area, corner).
15
15
feature : edge
16
- # the difference flag and thresh
16
+ # the difference flag and thresh
17
17
diff_flag : True
18
18
diff_thresh : 0.01
19
- # the queue maxsize
19
+ # the queue maxsize
20
20
local_queue_maxsize : 10
21
- # the queue threshold for offloading
21
+ # the queue threshold for offloading
22
22
queue_thresh : 5
23
- # Number of worker threads to offloading thread pool
23
+ # the max wait time
24
+ wait_thresh : 10
25
+ # Number of worker threads to offloading thread pool
24
26
offloading_max_worker : 1
25
27
frame_cache_maxsize : 100
26
28
small_model_name : fasterrcnn_mobilenet_v3_large_fpn
27
- # select the offloading policy
28
- policy : Edge-Local
29
- # change frame resolution using frame new height
29
+ # select the offloading policy
30
+ policy : Edge-Shortest
31
+ # change frame resolution using frame new height
30
32
new_height :
31
- # offload to another edge node [1080, 720], default 720
33
+ # offload to another edge node [1080, 720], default 720
32
34
another : 720
33
- # option to offload directly to the cloud [1080, 720, 480], default 480
35
+ # option to offload directly to the cloud [1080, 720, 480], default 480
34
36
directly_cloud : 720
35
- # offload to the cloud after local inference [1080, 720, 480], default 720
37
+ # offload to the cloud after local inference [1080, 720, 480], default 720
36
38
local_cloud : 720
37
- # The task from another edge node is offloaded to the cloud after local inference [720, 480], default 720
39
+ # The task from another edge node is offloaded to the cloud after local inference [720, 480], default 720
38
40
another_cloud : 720
39
- # the quality of the transmitted frame
41
+ # the quality of the transmitted frame
40
42
quality :
41
- # offload to another edge node [90, 85], default 85
43
+ # offload to another edge node [90, 85], default 85
42
44
another : 90
43
- # Option to offload directly to the cloud [85, 95], default 85
45
+ # Option to offload directly to the cloud [85, 95], default 85
44
46
directly_cloud : 90
45
- # offload to the cloud after local inference [85, 95], default 95
47
+ # offload to the cloud after local inference [85, 95], default 95
46
48
local_cloud : 90
47
- # The task from another edge node is offloaded to the cloud after local inference, default 85.
49
+ # The task from another edge node is offloaded to the cloud after local inference, default 85.
48
50
another_cloud : 90
49
- # server_ip
50
- server_ip : ' 43.137.51.180 :50051'
51
- # edge nodes
51
+ # server_ip
52
+ server_ip : ' 127.0.0.1 :50051'
53
+ # edge nodes
52
54
edge_id : 1
53
- destinations : {'id': [2], 'ip':['127.0.0.1:50050']}
54
- # database config
55
+ edge_num : 2
56
+ destinations : {'id': [2], 'ip':['192.168.0.185:50050']}
57
+ # database config
55
58
database :
56
- connection : { 'user': 'root', 'password': 'root', 'host': '43.137.51.180 ', 'raise_on_warnings': True }
59
+ connection : { 'user': 'root', 'password': 'root', 'host': '127.0.0.1 ', 'raise_on_warnings': True }
57
60
database_name : ' mydatabase'
58
61
# retrain
59
62
retrain :
63
+ flag : False
60
64
num_epoch : 2
61
65
cache_path : ' ./cache'
62
66
collect_num : 10
@@ -65,11 +69,12 @@ client:
65
69
66
70
server :
67
71
server_id : 0
68
- edge_ids : [1]
72
+ edge_ids : [1,2 ]
69
73
large_model_name : fasterrcnn_resnet50_fpn
70
74
# the queue maxsize
71
75
local_queue_maxsize : 10
72
- data_queue_maxsize : 10
76
+ # the max wait time
77
+ wait_thresh : 10
73
78
# database config
74
79
database :
75
80
connection : { 'user': 'root', 'password': 'root', 'host': '127.0.0.1', 'raise_on_warnings': True }
0 commit comments