This repository was archived by the owner on May 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput_2d_compose.yaml
More file actions
169 lines (139 loc) · 4.21 KB
/
input_2d_compose.yaml
File metadata and controls
169 lines (139 loc) · 4.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
services:
ai:
build:
context: ./AI
dockerfile: Dockerfile
platforms:
- "linux/amd64"
tags:
- "capstone/ai:2d"
container_name: capstone_ai_2d
ports:
- "6967:6967"
restart: on-failure
healthcheck:
test: [ "CMD-SHELL", "curl --silent --fail http://localhost:6967/ || exit 1" ]
interval: 5m
timeout: 3s
retries: 3
volumes:
- ~/AI_web_data/AI/weight/:/weight
environment:
DEVICE: "cuda"
CONFIG_PATH: "/weight/teacher/input_2d/config.json"
WEIGHT_PATH: "/weight/teacher/input_2d/best_epoch18_step4067.pt"
PORT: 6967
networks:
- web
deploy:
mode: global
restart_policy:
condition: on-failure
delay: 5s
window: 120s
max_attempts: 3
resources:
limits:
cpus: "8"
memory: 8192M
reservations:
cpus: "4"
memory: 4096M
devices:
- capabilities: [ "gpu" ]
device_ids: [ "all" ]
backend:
build:
context: ./Web/src/be
dockerfile: Dockerfile
platforms:
- "linux/amd64"
tags:
- "capstone/be:2d"
container_name: capstone_be_2d
ports:
- "6968:6968"
volumes:
- ~/AI_web_data/BE/input_2d/run_results/plots:/run_results/plots
- ~/AI_web_data/BE/input_2d/run_results/scores:/run_results/scores
- ~/AI_web_data/BE/input_2d/run_results/videos:/run_results/videos
environment:
WINDOW_LENGTH: 15
POLYORDER: 6
HEIGHT: 0.75
THRESHOLD: null
DISTANCE: null
PROMINENCE: 0.00001
WIDTH: 3
WLEN: null
REL_HEIGHT: 0.8
PLATEAU_SIZE: null
MERGE_GAP: 5
TMP_DIR: "run_results"
VAD_ENDPOINT: "http://capstone_ai_2d:6967"
PORT: 6968
restart: on-failure
healthcheck:
test: ["CMD", "curl", "-f", "http://0.0.0.0:6968/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
networks:
- web
deploy:
mode: global
restart_policy:
condition: on-failure
delay: 5s
window: 120s
max_attempts: 3
resources:
limits:
cpus: "8"
memory: 8192M
reservations:
cpus: "4"
memory: 4096M
frontend:
build:
context: ./Web/src/fe
dockerfile: Dockerfile
platforms:
- "linux/amd64"
tags:
- "capstone/fe:2d"
container_name: capstone_fe_2d
ports:
- "6969:6969"
environment:
VITE_API_URL: "http://0.0.0.0:6968/"
VITE_PORT: 6969
depends_on:
- backend
restart: on-failure
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://0.0.0.0:6969/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
networks:
- web
deploy:
mode: global
restart_policy:
condition: on-failure
delay: 5s
window: 120s
max_attempts: 3
resources:
limits:
cpus: "4"
memory: 8192M
reservations:
cpus: "4"
memory: 4096M
networks:
web:
driver: bridge