{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "PVRCNN",
"type": "python",
"request": "launch",
//要进行调试的python文件
"program": "/data_f/sun/miniconda3/envs/openpcdet/lib/python3.8/site-packages/torch/distributed/launch.py",
"console": "integratedTerminal",
//修改默认采用的conda环境,注意是pythonPath,不是python
"pythonPath":"/data_f/sun/miniconda3/envs/openpcdet/bin/python",
//设置为false,表示会进入内置包package中代码进行调试
"justMyCode": false,
//相关参数python xxx.py --xxx xxxx
"args":[
// "--nproc_per_node=2",
"--nproc_per_node=1",
"--master_addr=127.0.0.1",
"--master_port=29500",
"/data_f/sun/OpenPCDet/tools/train.py",
"--launcher",
"pytorch",
"--cfg_file",
"/data_f/sun/OpenPCDet/tools/cfgs/kitti_models/pv_rcnn.yaml",
],
//设置采用哪几块的GPU进行训练调试
"env": {"CUDA_VISIBLE_DEVICES":"1"},
//修改vscode代码调试的根目录,${workspaceFolder}表示当前VSCode打开的文件夹根目录
"cwd": "${workspaceFolder}/tools"
},
]
}
VSCode debug调试通用json文件配置
最新推荐文章于 2024-01-16 22:26:18 发布