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: 2 comments
-
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 have tried this and it works in my case. "args": [
"device=0",
"semantic_inversion=true",
"unconstrained=false",
"spatial_perturbation=false",
"temporal_perturbation=false",
"num_steps=5000000",
"warm_up.start_step=4000000",
"warm_up.end_step=5000000",
"keyframe_selection_scheme=uncond"
] |
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: