imaginAIry/tests
Bryce Drennan 9eacf5e7ed
perf: improve startup time by doing some imports lazily (#233)
just running `aimg --help` or `aimg --version` was very slow due to all the imports being brought in eagerly

Before changes `aimg --help`
`2.24s user 4.05s system 184% cpu 3.416 total`

After changes:
`0.04s user 0.02s system 8% cpu 0.625 total`

Used `PYTHONPROFILEIMPORTTIME=1 aimg --help` to find time consuming imports.

Also switched to using `scripts` instead of `entrypoints` since the scripts are much faster.

Made duplicate SAMPLER_TYPE_OPTIONS that can be loaded without loading all the samplers themselves.

Likely a breaking change - not sure.
2023-02-02 21:43:04 -08:00
..
data fix: don't report a safety issue when a black image is generated 2023-01-16 14:51:31 -08:00
enhancers fix: don't report a safety issue when a black image is generated 2023-01-16 14:51:31 -08:00
expected_output fix: tile mode was broken since latest perf improvements (#220) 2023-01-27 22:56:46 -08:00
modules perf: add back memory efficiency improvements 2022-11-28 00:32:53 -08:00
samplers feature: Stable Diffusion 2.0 2022-11-24 00:50:57 -08:00
__init__.py fix: inpainting producing blurry images 2022-09-27 17:19:25 -07:00
conftest.py feature/refactor/fix: better defaults. correct version in metadata 2022-11-26 16:18:08 -08:00
Dockerfile tests: add docker image for testing environment. minor test improvements 2022-09-21 22:38:44 -07:00
test_api.py fix: tile mode was broken since latest perf improvements (#220) 2023-01-27 22:56:46 -08:00
test_clip_embedder.py test: more flexible embedding test 2023-01-02 14:11:36 -08:00
test_cmds.py fix: inpainting producing blurry images 2022-09-27 17:19:25 -07:00
test_config.py perf: improve startup time by doing some imports lazily (#233) 2023-02-02 21:43:04 -08:00
test_enhancers.py fix: rename files for windows compat 2023-01-22 19:08:01 -08:00
test_guidance.py Fix typos 2022-11-25 19:23:06 -08:00
test_model_manager.py feature: print version 2023-01-18 12:04:07 -08:00
test_outpaint.py feature: print version 2023-01-18 12:04:07 -08:00
test_prompt_schedules.py feature: add compilation animations (#224) 2023-01-28 17:16:47 -08:00
test_roi_utils.py feature: finetuning 2023-01-16 01:35:59 -08:00
test_safety.py fix: don't report a safety issue when a black image is generated 2023-01-16 14:51:31 -08:00
test_schema.py feature: urls as init images 2022-09-15 23:06:59 -07:00
test_utils.py refactor: consolidate logging utils 2022-10-10 22:32:39 -05:00
utils.py tests: support distributed test runs 2022-10-16 20:22:16 -07:00