I'm trying to debug some Python code I have which I can run with no problem by typing the following in bash:
CUDA_VISIBLE_DEVICES=0 \
python test_multi.py \
--experiment_name 128_shortcut1_inject1_none \
--test_atts Eyeglasses \
--test_ints -1.0
I've created this json config file for VScode:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "<absolute_path>/test_multi.py",
"console": "integratedTerminal",
"env": [{ "name":"CUDA_VISIBLE_DEVICES", "value":0}],
"args": ["--experiment_name 128_shortcut1_inject1_none", "--test_atts Eyeglasses", "--test_ints -1"]
}
]
}
but I keep getting
test_multi.py: error: unrecognized arguments: --experiment_name 128_shortcut1_inject1_none --test_atts Eyeglasses --test_ints -1