Skip to content

How to debug my python file with Hydra in Vscode launch.json? #2334

Answered by serhan-gul
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

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:

to include a single quote in a single quoted string, use ' (for double quotes in a double quoted string, use ")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jasha10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #2327 on August 10, 2022 12:05.