Skip to content
w-e-w edited this page Apr 19, 2023 · 6 revisions

You can run tests to validate your modifications to weubi.

To run tests, add --tests TESTS_DIR as a commandline argument to launch.py along with your other command line arguments.

There is a basic test that we used to verify the basic image creation works vi API, you can create other test for different scenarios.

To run the basic test, pass the argument --tests test to launch.py:

python launch.py --tests test

for CPU only test:

python launch.py --tests test --use-cpu all --no-half

the test the arguments used for the automated GitHub actions upon Pull Requests is:

python launch.py --tests test --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test

You'll find outputs of main program in test/stdout.txt and test/stderr.txt.

Clone this wiki locally