kohya_ss/sd-scripts/tests
GameSpy 1199b6ac0c anima sd-scripts 2026-02-11 17:28:04 +01:00
..
library anima sd-scripts 2026-02-11 17:28:04 +01:00
README.md generic sd-scripts 2026-02-11 17:26:49 +01:00
manual_test_anima_cache.py anima sd-scripts 2026-02-11 17:28:04 +01:00
manual_test_anima_real_training.py anima sd-scripts 2026-02-11 17:28:04 +01:00
test_custom_offloading_utils.py anima sd-scripts 2026-02-11 17:28:04 +01:00
test_fine_tune.py generic sd-scripts 2026-02-11 17:26:49 +01:00
test_flux_train.py generic sd-scripts 2026-02-11 17:26:49 +01:00
test_flux_train_network.py generic sd-scripts 2026-02-11 17:26:49 +01:00
test_lumina_train_network.py anima sd-scripts 2026-02-11 17:28:04 +01:00
test_optimizer.py generic sd-scripts 2026-02-11 17:26:49 +01:00
test_sd3_train.py generic sd-scripts 2026-02-11 17:26:49 +01:00
test_sd3_train_network.py generic sd-scripts 2026-02-11 17:26:49 +01:00
test_sdxl_train.py generic sd-scripts 2026-02-11 17:26:49 +01:00
test_sdxl_train_network.py generic sd-scripts 2026-02-11 17:26:49 +01:00
test_train.py generic sd-scripts 2026-02-11 17:26:49 +01:00
test_train_network.py generic sd-scripts 2026-02-11 17:26:49 +01:00
test_train_textual_inversion.py generic sd-scripts 2026-02-11 17:26:49 +01:00
test_validation.py generic sd-scripts 2026-02-11 17:26:49 +01:00

README.md

Tests

Install

pip install pytest

Usage

pytest

Contribution

Pytest is configured to run tests in this directory. It might be a good idea to add tests closer in the code, as well as doctests.

Tests are functions starting with test_ and files with the pattern test_*.py.

def test_x():
    assert 1 == 2, "Invalid test response"

Resources

pytest

PyTorch testing