Files
audio-driven-face-animation/tests/smoke/test_sweeps.py
T
Łukasz Zalewski 70ab061f75 Release/0.9 (#141)
* add flake8 and prettier to pre-commit-config
* add setup.cfg
* add workers=True to seed_everything()
* update lightning badge logo
* bump package versions
* update README.md
* add __init__.py files
* add more logger configs parameters
* add default Dockerfile
* change .env.template to .env.example
* move inference example to readme
* remove img_dataset.py
* simplify names of wandb callbacks
* remove wandb test marker
* format files with prettier
2021-05-21 09:26:31 +02:00

44 lines
935 B
Python

import pytest
from tests.helpers.run_command import run_command
"""
Use the following command to skip slow tests:
pytest -k "not slow"
"""
@pytest.mark.slow
def test_default_sweep():
"""Test default Hydra sweeper."""
command = [
"run.py",
"-m",
"datamodule.batch_size=64,128",
"model.lr=0.01,0.02",
"trainer=default",
"trainer.fast_dev_run=true",
]
run_command(command)
@pytest.mark.slow
def test_optuna_sweep():
"""Test Optuna sweeper."""
command = [
"run.py",
"-m",
"hparams_search=mnist_optuna",
"trainer=default",
"trainer.fast_dev_run=true",
]
run_command(command)
@pytest.mark.skip(reason="TODO: Add Ax sweep config.")
@pytest.mark.slow
def test_ax_sweep():
"""Test Ax sweeper."""
command = ["run.py", "-m", "hparams_search=mnist_ax", "trainer.fast_dev_run=true"]
run_command(command)