Skip to content

Commit 39c1a99

Browse files
author
yixu.cui
committed
add .vscode/launch.json.example
1 parent 672ad0c commit 39c1a99

File tree

1 file changed

+192
-0
lines changed

1 file changed

+192
-0
lines changed

.vscode/launch.json.example

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python: Current File",
9+
"type": "python",
10+
"request": "launch",
11+
"program": "${file}",
12+
"console": "integratedTerminal",
13+
"justMyCode": false,
14+
// "cwd": "${workspaceFolder}"
15+
"env": {
16+
"PYTHONPATH": "${workspaceFolder}"
17+
}
18+
},
19+
{
20+
"name": "Python: Debug with args",
21+
"type": "python",
22+
"request": "launch",
23+
// "program": "${workspaceFolder}/.venv/lib/python3.8/site-packages/torchpilot/runner/ddp_launcher.py",
24+
"program": "${file}",
25+
"console": "integratedTerminal",
26+
"justMyCode": false,
27+
"env": {
28+
"PYTHONPATH": "${workspaceFolder}"
29+
},
30+
"args": [
31+
"--split",
32+
"val_dpm",
33+
"--generate_imgs"
34+
],
35+
},
36+
{
37+
"name": "Python: train-aux",
38+
"type": "python",
39+
"request": "launch",
40+
"program": "${workspaceFolder}/.venv/lib/python3.8/site-packages/torch/distributed/launch.py",
41+
"console": "integratedTerminal",
42+
"justMyCode": false,
43+
"env": {
44+
"PYTHONPATH": "${workspaceFolder}"
45+
},
46+
"args": [
47+
"--nproc_per_node",
48+
"2",
49+
"${workspaceFolder}/train_aux.py",
50+
"--dataset",
51+
"mot17",
52+
"--workers",
53+
"32",
54+
"--device",
55+
"4,5",
56+
"--batch-size",
57+
"64",
58+
"--data",
59+
"data/mot17.yaml",
60+
"--img",
61+
"1280",
62+
"1280",
63+
"--cfg",
64+
"cfg/training/yolov7-w6.yaml",
65+
"--weights",
66+
"runs/train/yolov7-w6-custom-0220-visdrone-4gpu-64w-64b-15epochs-sync-bn/weights/best.pt",
67+
"--name",
68+
"yolov7-w6-custom-0218-MOT17-64w-128b-15epochs",
69+
"--hyp",
70+
"data/hyp.scratch.custom.yaml",
71+
"--epochs",
72+
"30",
73+
// "--resume",
74+
// "runs/train/yolov7-w6-custom-0220-visdrone-4gpu-64w-64b-15epochs-sync-bn/weights/epoch_014.pt"
75+
],
76+
},
77+
{
78+
"name": "Python: train-aux-debug",
79+
"type": "python",
80+
"request": "launch",
81+
"program": "${workspaceFolder}/train_aux.py",
82+
"console": "integratedTerminal",
83+
"justMyCode": false,
84+
"env": {
85+
"PYTHONPATH": "${workspaceFolder}"
86+
},
87+
"args": [
88+
"--dataset",
89+
"mot20",
90+
"--workers",
91+
"0",
92+
"--device",
93+
"4",
94+
"--batch-size",
95+
"16",
96+
"--data",
97+
"data/mot20.yaml",
98+
"--img",
99+
"1280",
100+
"1280",
101+
"--cfg",
102+
"cfg/training/yolov7-w6.yaml",
103+
"--weights",
104+
"weights_yolo/yolov7-w6_training.pt",
105+
"--name",
106+
"yolov7-w6-custom-0309-MOT17-32w-16b-15epochs_debug",
107+
"--hyp",
108+
"data/hyp.scratch.custom.yaml",
109+
"--epochs",
110+
"15",
111+
// "--resume",
112+
// "runs/train/yolov7-w6-custom-0220-visdrone-4gpu-64w-64b-15epochs-sync-bn/weights/epoch_014.pt"
113+
],
114+
},
115+
{
116+
"name": "Python: Inferring",
117+
"type": "python",
118+
"request": "launch",
119+
"program": "${workspaceFolder}/test.py",
120+
"console": "integratedTerminal",
121+
"justMyCode": false,
122+
"env": {
123+
"PYTHONPATH": "${workspaceFolder}"
124+
},
125+
"args": [
126+
"--dataset",
127+
"mot20",
128+
"--device",
129+
"4,5,6,7",
130+
"--batch-size",
131+
"64",
132+
"--data",
133+
"data/mot20.yaml",
134+
"--img-size",
135+
"1280",
136+
"--weights",
137+
"runs/train/yolov7-w6-custom-0220-MOT20-train-4gpu-64w-64b-30epochs/weights/epoch_026.pt",
138+
"--project",
139+
"runs/val",
140+
"--name",
141+
"yolov7-w6-custom-0221-MOT20-train-4gpu-64w-64b-30epochs-sync-bn-last-conf0.35",
142+
"--conf-thres",
143+
"0.35",
144+
"--iou-thres",
145+
"0.65",
146+
"--task",
147+
"val",
148+
"--save-hybrid",
149+
"--save-conf",
150+
"--save-json"
151+
],
152+
},
153+
{
154+
"name": "Python: Tracking",
155+
"type": "python",
156+
"request": "launch",
157+
"program": "${workspaceFolder}/tracker/track.py",
158+
"console": "integratedTerminal",
159+
"justMyCode": false,
160+
"env": {
161+
"PYTHONPATH": "${workspaceFolder}"
162+
},
163+
"args": [
164+
"--dataset",
165+
"visdrone",
166+
"--data_format",
167+
"origin",
168+
"--tracker",
169+
"deepsort",
170+
"--model_path",
171+
"runs/train/yolov7-w6-custom-0218-MOT17-64w-128b-50epochs/weights/best.pt",
172+
],
173+
},
174+
{
175+
"name": "Python: track_demo",
176+
"type": "python",
177+
"request": "launch",
178+
"program": "${workspaceFolder}/tracker/track_demo.py",
179+
"console": "integratedTerminal",
180+
"justMyCode": false,
181+
"env": {
182+
"PYTHONPATH": "${workspaceFolder}"
183+
},
184+
"args": [
185+
"--obj",
186+
"videos/MOT17-07-SDP-raw.mp4",
187+
"--model_path",
188+
"runs/train/yolov7-w6-custom-0309-MOT17-val_sdp-4gpu-64w-32b-20epochs/weights/best.pt"
189+
],
190+
}
191+
]
192+
}

0 commit comments

Comments
 (0)