ComfyUI/web/scripts
Gorka Eguileor de172f8be7
Improve A1111 metadata parsing (#3216)
* A1111 import: Set VAE name

This patch sets the VAE name for the `VAELoader` when present in the png
metadata.

* A1111 import: Skip all hashes

When importing from A1111 the parsing assumes that values of a key will
never contain a ":", which is not correct.

There are 2 cases where we can have ":" in the value:

- Inside a string. E.g.:
  Lora hashes: "xl_more_art-full_v1: fe3b4816be83, add-detail-xl: 9c783c8ce46c"

- When the value is a json dictionary. E.g.:
  Hashes: {"vae": "63aeecb90f", "embed:negativeXL_D": "fff5d51ab6"}

This patch changes how we parse the metadata to take those 2 cases into
account and also skips the following additional keys that are present in
some Forge images:

- Version
- VAE hash
- TI hashes
- Lora hashes
- Hashes

* A1111 import: Parse Hires steps

This patch parses the `Hires steps` parameter that is part of the High
Resolution Upscale configuration when it  is present, and fallbacks to
the one from the `samplerNode` (like the code currently does) if it's
not present.
2024-04-06 12:10:17 -04:00
..
ui Ability to hide menu 2024-01-22 18:56:43 +00:00
api.js Make auto saved workflow stored per tab 2024-01-29 18:43:59 +00:00
app.js Support linking converted inputs from api json 2024-02-06 16:55:55 +00:00
defaultGraph.js
domWidget.js Manage group nodes (#2455) 2024-01-13 15:43:20 -05:00
logging.js Fix logging not checking onChange 2024-01-15 17:45:48 +00:00
pnginfo.js Improve A1111 metadata parsing (#3216) 2024-04-06 12:10:17 -04:00
ui.js Ability to hide menu 2024-01-22 18:56:43 +00:00
utils.js Store user settings/data on the server and multi user support (#2160) 2024-01-08 17:06:44 -05:00
widgets.js add increment-wrap as option to ValueControlWidget when isCombo, which loops back to 0 when at end of list 2024-01-31 16:14:50 -08:00