{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Debug train.py",
"type": "python",
"request": "launch",
"program": "./trainning/train.py",
"args": [
"--stage", "float",
"--config", "/home/configs/config.py"
],
"console": "integratedTerminal",
"pythonPath": "/home/you/my_env/bin/python3", // 修改为你的虚拟环境路径
"env": {
"DIR": "/mnt/xxx/xxx",
"CONFIGFILE": "/mnt/xxx/xxx",
"PYTHONPATH": "${DIR}:${env:PYTHONPATH}"
},
"preLaunchTask": "Set Environment Variables"
}
]
}
04-17
4497
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-24
1635
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)