IDEA-Research / detrex

detrex is a research platform for DETR-based object detection, segmentation, pose estimation and other visual recognition tasks.
https://detrex.readthedocs.io/en/latest/
Apache License 2.0
1.9k stars 199 forks source link

LexerNoViableAltException: dates.from_date=2023-09-16 #309

Open JDraper93 opened 9 months ago

JDraper93 commented 9 months ago

I am trying to run a hydra process with overides from within a .sh script

e.g. python main.py dates.from_date='2023-09-16' python main.py dates.from_date='2023-09-17'

When doing so I get the error:

LexerNoViableAltException: dates.from_date=2023-09-16 ^ See https://hydra.cc/docs/1.2/advanced/override_grammar/basic for details

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace. LexerNoViableAltException: dates.from_date=2023-09-17

See https://hydra.cc/docs/1.2/advanced/override_grammar/basic for details

When running an equivalent script in windows (cmd) this works, this also worked when running manually from the command line e.g. python main.py dates.from_date='2023-09-16'.

I don't have any escaped characters in my override and wrapping the command in double quotes did not fix the issue.

rentainhe commented 9 months ago

Sry, we did not try to run our model in this way before, maybe it's better to use the default training engine instead of the hydra one