Commit Graph

7 Commits (c299cfffd9b5bef5d0a589dd536a7e2d9afc25ba)

Author SHA1 Message Date
Bryce 9b95e8b0b6 perf: improve cli startup time
- do not provide automatically imported api functions and objects in `imaginairy` root module
- horrible hack to overcome horrible design choices by easy_install/setuptools

The hack modifies the installed script to remove the __import__ pkg_resources line

If we don't do this then the scripts will be slow to start up because of
pkg_resources.require() which is called by setuptools to ensure the
"correct" version of the package is installed.

before modification example:
```
__requires__ = 'imaginAIry==14.0.0b5'
__import__('pkg_resources').require('imaginAIry==14.0.0b5')
__file__ = '/home/user/projects/imaginairy/imaginairy/bin/aimg'
with open(__file__) as f:
    exec(compile(f.read(), __file__, 'exec'))
```
10 months ago
Bryce 2bd6cb264b feature: large refactor
- add type hints
- size parameter
- ControlNetInput => ControlInput
- simplify imagineresult
10 months ago
Bryce 558d3388e5 style: speed up linting and autoformatting. fix lints 1 year ago
Bryce dc8f8d5a3d feature: add colorization controlnet. improve `aimg colorize` command 1 year ago
Bryce d32e1060cd feature: multi-controlnet support at the command line
add controlnet option for edit demo
1 year ago
Bryce d7e494241c fix: composition images were too blurry 2 years ago
Bryce 9831d8a24a feature: `aimg colorize` attempts to use controlnet to colorize images 2 years ago