How to debug my python file with Hydra in Vscode launch.json? #2334
-
I'm using Hydra which requires passing additional arguments using a plus and then an equal sign between the argument and its valueI, e.g. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I had the same issue. Maybe not the most elegant solution but it works if you pass everything as a single argument:
Note that you need the single quotes to escape the remaining equal signs. For more information, please check Hydra's override syntax. Edit: From the Hydra docs on Quoted Values:
|
Beta Was this translation helpful? Give feedback.
I had the same issue. Maybe not the most elegant solution but it works if you pass everything as a single argument:
"args" : ["+model_path='logs/fc/version_7/checkpoints/epoch=19-step=3700.ckpt'"]
Note that you need the single quotes to escape the remaining equal signs. For more information, please check Hydra's override syntax.
Edit: From the Hydra docs on Quoted Values: