{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: train.py",
"type": "python",
"request": "launch",
"--dist-url": "tcp://211.81.55.163:31234",
"program": "/home/.../anaconda3/envs/ddpenv/lib/python3.8/site-packages/torch/distributed/launch.py",
// "program": "F-ViT/train.py",
"console": "integratedTerminal",
"justMyCode": false, //是否只能跳转到本文件中的函数
"env": {"CUDA_VISIBLE_DEVICES":"7"},
"args": [
"xxx/tools/train.py",
"--nproc_per_node=1",
"--master_port=29000",
],
"cwd": "/mnt/.../code/xxx-main/"
},
]
}
标签:program,launch,vscode,py,--,json,train,...
From: https://blog.csdn.net/qq_45012074/article/details/142863294