You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
2 years ago
..
data fix: don't report a safety issue when a black image is generated 2 years ago
enhancers fix: don't report a safety issue when a black image is generated 2 years ago
expected_output fix: tile mode was broken since latest perf improvements (#220) 2 years ago
modules
samplers
Dockerfile
__init__.py
conftest.py
test_api.py fix: tile mode was broken since latest perf improvements (#220) 2 years ago
test_clip_embedder.py
test_cmds.py
test_config.py perf: improve startup time by doing some imports lazily (#233) 2 years ago
test_enhancers.py fix: rename files for windows compat 2 years ago
test_guidance.py
test_model_manager.py feature: print version 2 years ago
test_outpaint.py feature: print version 2 years ago
test_prompt_schedules.py feature: add compilation animations (#224) 2 years ago
test_roi_utils.py
test_safety.py fix: don't report a safety issue when a black image is generated 2 years ago
test_schema.py
test_utils.py
utils.py