ComfyUI/web/scripts
guill 7d4530f6f5
Rework Caching (#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.
2023-09-11 19:53:41 -07:00
..
api.js Rework Caching (#2) 2023-09-11 19:53:41 -07:00
app.js Rework Caching (#2) 2023-09-11 19:53:41 -07:00
defaultGraph.js Change the default prompt to something more impressive. 2023-04-08 01:10:15 -04:00
logging.js add logging 2023-08-04 08:30:01 +01:00
pnginfo.js Add CheckpointSave node to save checkpoints. 2023-06-26 12:22:27 -04:00
ui.js Rework Caching (#2) 2023-09-11 19:53:41 -07:00
widgets.js Merge remote-tracking branch 'upstream/master' into node_expansion 2023-09-02 21:08:31 -07:00