* Add inference tests
* Clean up
* Rename test graph file
* Add readme for tests
* Separate server fixture
* test file name change
* Assert images are generated
* Clean up comments
* Add __init__.py so tests can run with command line `pytest`
* Fix command line args for pytest
* Loop all samplers/schedulers in test_inference.py
* Ci quality workflows compare (#1)
* Add image comparison tests
* Comparison tests do not pass with empty metadata
* Ensure tests are run in correct order
* Save image files with test name
* Update tests readme
* Reduce step counts in tests to ~halve runtime
* Ci quality workflows build (#2)
* Add build test github workflow
Before I had made the last layer the penultimate layer because some
checkpoints don't have them but it's not consistent with the others models.
TLDR: for SD2.x models only: CLIPSetLastLayer -1 is now -2.
This commit solves a number of bugs and adds some caching related
functionality. Specifically:
1. Caching is now input-based. In cases of completely identical nodes,
the output will be reused (for example, if you have multiple
LoadCheckpoint nodes loading the same checkpoint). If a node doesn't
want this behavior (e.g. a `RandomInteger` node, it should set
`NOT_IDEMPOTENT = True`.
2. This means that nodes within a component will now be cached and will
only change if the input actually changes. Note that types that can't
be hashed by default will always count as changed (though the
component itself will only expand if one of its inputs changes).
3. A new LRU caching strategy is now available by starting with
`--cache-lru 100`. With this strategy, in addition to the latest
workflow being cached, up to N (100 in the example) node outputs will
be retained. This allows users to work on multiple workflows or
experiment with different inputs without losing the benefits of
caching (at the cost of more RAM and VRAM). I intentionally left some
additional debug print statements in for this strategy for the
moment.
4. A new endpoint `/debugcache` has been temporarily added to assist
with tracking down issues people encounter. It allows you to browse
the contents of the cache.
5. Outputs from ephemeral nodes will now be communicated to the
front-end with both the ephemeral node id, the 'parent' node id, and
the 'display' node id. The front-end has been updated to deal with
this.