Skip to content

Commit

Permalink
add vscode debug config
Browse files Browse the repository at this point in the history
  • Loading branch information
Noietch committed Oct 17, 2024
1 parent 865c62f commit e192da2
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{

"configurations": [
{
"name": "dp objects365",
"type": "debugpy",
"request": "launch",
// 设置 torchrun 命令的参数
"program": "/home/jiao/anaconda3/envs/oadp/lib/python3.11/site-packages/torch/distributed/run.py",
"console": "integratedTerminal",
"justMyCode": false,
"args": [
"--nproc_per_node=1",
"--nnodes=1",
"--master-port=5000",
"-m",
"oadp.dp.train",
"objects365",
"configs/dp/ov_object365.py"
],
},
{
"name": "dp v3det",
"type": "debugpy",
"request": "launch",
// 设置 torchrun 命令的参数
"program": "/home/jiao/anaconda3/envs/oadp/lib/python3.11/site-packages/torch/distributed/run.py",
"console": "integratedTerminal",
"justMyCode": false,
"args": [
"--nproc_per_node=1",
"--nnodes=1",
"--master-port=5000",
"-m",
"oadp.dp.train",
"v3det",
"configs/dp/ov_v3det.py"
],
},
{
"name": "dp mixed",
"type": "debugpy",
"request": "launch",
// 设置 torchrun 命令的参数
"program": "/home/jiao/anaconda3/envs/oadp/lib/python3.11/site-packages/torch/distributed/run.py",
"console": "integratedTerminal",
"justMyCode": false,
"args": [
"--nproc_per_node=1",
"--nnodes=1",
"--master-port=5000",
"-m",
"oadp.dp.train",
"mixed",
"configs/dp/ov_mixed.py"
],
}
]

}

0 comments on commit e192da2

Please sign in to comment.