Skip to content

Commit 17d41b3

Browse files
Ssofjasarahyurick
andauthored
added hydra params as defaults (#1159)
Signed-off-by: Ssofja <[email protected]> Co-authored-by: Sarah Yurick <[email protected]>
1 parent 73b4802 commit 17d41b3

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

tutorials/audio/fleurs/pipeline.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
defaults:
2+
- _self_
3+
- override hydra/job_logging: none
4+
- override hydra/hydra_logging: none
5+
6+
hydra:
7+
run:
8+
dir: .
9+
output_subdir: null
10+
111
documentation: |
212
FLEURS
313
######

tutorials/audio/fleurs/run.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import sys
16-
1715
import hydra
1816
from loguru import logger
1917
from omegaconf import DictConfig, OmegaConf
@@ -54,8 +52,4 @@ def main(cfg: DictConfig) -> None:
5452

5553

5654
if __name__ == "__main__":
57-
# hacking the arguments to always disable hydra's output
58-
sys.argv.extend(
59-
["hydra.run.dir=.", "hydra.output_subdir=null", "hydra/job_logging=none", "hydra/hydra_logging=none"]
60-
)
6155
main()

0 commit comments

Comments
 (0)