mirror of
https://github.com/brycedrennan/imaginAIry
synced 2024-11-05 12:00:15 +00:00
9eacf5e7ed
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. |
||
---|---|---|
.. | ||
data | ||
enhancers | ||
expected_output | ||
modules | ||
samplers | ||
__init__.py | ||
conftest.py | ||
Dockerfile | ||
test_api.py | ||
test_clip_embedder.py | ||
test_cmds.py | ||
test_config.py | ||
test_enhancers.py | ||
test_guidance.py | ||
test_model_manager.py | ||
test_outpaint.py | ||
test_prompt_schedules.py | ||
test_roi_utils.py | ||
test_safety.py | ||
test_schema.py | ||
test_utils.py | ||
utils.py |