From e192da226d36c469efc12e72224f37419e1a8ada Mon Sep 17 00:00:00 2001 From: Noietch Date: Thu, 17 Oct 2024 15:11:19 +0800 Subject: [PATCH] add vscode debug config --- .vscode/launch.json | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..c137442 --- /dev/null +++ b/.vscode/launch.json @@ -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" + ], + } + ] + +} +