Commit Graph
152 Commits
Author SHA1 Message Date
kannkyo 54d080bf6a Specify UTF-8 encoding for file reads (#1007)
Added UTF-8 encoding to file reads for YAML and JSON files.
2026-06-19 23:07:20 +08:00
yolain 130c1b5796 fix(math): enhance evaluate_formula to handle list inputs and return results accordingly 2026-04-30 03:24:51 +08:00
xmarreandxmarre ec4ca6717f Fix Clean VRAM teardown ordering and clear Easy-Use cache in place (#982)
* Remove unused repo metadata and frontend submodule

* Remove repo metadata and frontend submodule

* Add .codex to .gitignore

* Delete .codex

---------

Co-authored-by: xmarre <mmquant1@gmail.com>
2026-04-09 08:12:22 +08:00
Z-nonymous 8ba21d0b44 XY plot issue with XY Inputs Lora (#976)
* Fixed the LoRA handling bug in [`py/libs/xyplot.py:365-395`](py/libs/xyplot.py:365).

The original code used an if/else pattern that only processed one LoRA at a time:
```python
xy_values = x_value if self.x_type == "Lora" else y_value
```

This caused issues when both X and Y axes contained LoRAs - only the X axis LoRA was processed, and when only Y had LoRAs, the latent array wasn't populated correctly.

The fix now:
1. Creates an empty `lora_stack` list
2. Adds the X axis LoRA to the stack if `self.x_type == "Lora"`
3. Adds the Y axis LoRA to the stack if `self.y_type == "Lora"`
4. Appends any existing `plot_image_vars['lora_stack']` to the combined stack
5. Applies all LoRAs in sequence

This ensures both X and Y LoRAs are properly combined and applied when both axes contain LoRA values, fixing the `IndexError` in `rearrange_tensors()` that occurred due to mismatched latent array dimensions.

* Fixed: get_labels_and_sample loop structure (lines 588-623)

The IndexError persisted because the latent array length didn't match the expected grid dimensions. The issue is in the nested loop structure of get_labels_and_sample()
When only Y-axis has LoRA values (X is "None"), the nested loops don't generate the correct number of latents:
This results in 0 latents instead of len(y_values) latents, causing the IndexError in rearrange_tensors()

Replaced the nested loop structure with three explicit cases:

X-only variation (self.y_type == 'None'): Iterates over X values only
Y-only variation (self.x_type == 'None'): Iterates over Y values only
Both X and Y variation: Nested iteration over both axes
This ensures the correct number of latents are generated for all scenarios, fixing the IndexError in rearrange_tensors() that occurred when only Y-axis had values (like LoRAs).

* Fix for the LoRA label generation logic in [`py/libs/xyplot.py`](py/libs/xyplot.py:63-69). The changes made to the `define_variable()` method:

1. **Reduced model name truncation** from 30 to 25 characters to leave room for weight information
2. **Changed weight format** from `(0.50)` to ` w:0.50` for better visibility
3. **Only show weight when it differs from default** (1.0) - this ensures weight is displayed for non-default values
4. **Added bounds check** for `len(arr) > 3` before accessing `arr[3]` to prevent potential IndexError

Now when using the same LoRA with different weights (e.g., LoRA A at 0.5 and 1.0), each variation will have a distinct label in the axis, making it clear which weight is being applied in each column/row of the XY plot.
2026-03-31 15:11:24 +08:00
yolain 7a17ad010d Add stringToIntList and SimpleMath 2025-12-30 13:05:38 +08:00
Mr-Quin 58e9d594cd add controlnet input to xyplot (#877) 2025-10-02 15:31:15 +08:00
yolain f550ce83a8 Fix image selector output error type #845 2025-08-09 12:42:20 +08:00
yolain 0349d81694 Revamp ImageChooser and removed Preview&Choose in easy samplers #838 2025-08-08 18:54:24 +08:00
yolain b0cd0bcb5b Add easy joyCaption3API 2025-07-05 00:03:12 +08:00
yolain e46f8a45d0 Add easy promptAwait node (#818)
* Add submodule

* Set submodule branch to main

* Add PromptAwait node

* Fix loop has started for the second time, but the prompt word has not output new content

* Add input_1

* Change select widget to toolbar

* Modify some field names and displays

* Change select max-width

* Add output random seed in promptAwait
2025-06-30 01:22:13 +08:00
Mike KinneyandMike Kinney 1d8db7510b Update XY Plot Labels (#792)
* Add lora weight to XY title axis. Trim lora desc.

* Add weights to lora names in xyPlots. Re-add because original lost in git merge mistake.

* Only add common label, if it's not an axis type.

* Remove bad comment.

---------

Co-authored-by: Mike Kinney <mike.kinney@valorepartners.com>
2025-06-01 13:15:55 +08:00
Mike Kinney 7fbd03bda7 Merge branch 'main' into bugfix-xyplot-optional-lora 2025-05-14 07:20:08 -07:00
Mike Kinney 9cc2ac02da Use previously generated model/clip for next loaded lora 2025-05-14 06:27:36 -07:00
Mike Kinney 5d8f0a3b0a Update clip and model when adding loras 2025-05-13 16:49:49 -07:00
Mike Kinney fceec754a4 Updated formatting for load lora for strength displays to 3 digits 2025-05-13 07:03:59 -07:00
Mike Kinney ce62fc73da Add core XYPlot Footer 2025-05-13 06:35:45 -07:00
yolain b7881d84b1 Add uniform width method to easy makeImageForICLora 2025-05-06 14:01:11 +08:00
yolain 0f5ad38384 Add apikey_override to easy joycaption2API 2025-05-06 12:56:07 +08:00
rosmeowtis ebf25b585f update descriptions to conform to reality 2025-04-25 18:10:35 +08:00
rosmeowtis fb8968d438 wildcardsPromptMatrix node will treat offset in cycle 2025-04-25 18:06:07 +08:00
rosmeowtis 15cfeedf7b Add wildcardsPromptMatrix Node:
1. wildcard-replaced prompt will be returned in order rather than randomly
2. will return the amount of probilities and amount of probilities each option or wildcard
3. the prompt can be selected by offset argument, the order of probilities is fixed
4. even if the offset exceeds the total, it will not stop, but will always return to the last probility, requiring additional nodes to control.
2025-04-25 03:07:49 +08:00
facok 16631d21d9 fix: improve text encoding handling to prevent Chinese character garbling
ISO-8859-1 encoding can forcibly read any byte (it maps each byte directly to its corresponding character). This means it won't throw any decoding errors, but it will incorrectly interpret UTF-8 encoded Chinese characters as other characters, resulting in garbled text (mojibake).
ISO-8859-1编码可以强制读取任何字节(它会把每个字节都映射到对应的字符)
这意味着它不会抛出解码错误,但会把UTF-8编码的中文字符错误解释为其他字符
导致中文显示为乱码
2025-03-07 17:39:53 +08:00
Jacob Ferrari ffe26e8571 Fix CLIP vision model URLs and improve download error handling
- Update CLIP vision model URLs for IPAdapter and DynamiCrafter
- Improve error handling for model downloads with clearer error messages
- Add changelog entry for v1.2.8
2025-02-11 02:14:27 +00:00
yolain d4fb74df19 Fix cannot import name 'applyKolorsUnet'#655 2025-02-09 19:31:29 +08:00
yolain 756f60a01a Fix bizyair bug 2025-02-04 16:16:50 +08:00
yolain 9ad997ccab Modify some third-party API request nodes and add joyCaption2 BizyAIR node 2025-02-04 15:11:31 +08:00
yolain bd149ca8de Set sd3_api to deprecated 2025-02-04 12:51:29 +08:00
yolain 4d9f791cf7 Fix issue caused by IDE automated patching of some paths #635 2025-01-31 11:14:07 +08:00
yolain 39fa6ef37a Changes in document structure 2025-01-26 18:12:06 +08:00
yolain bf21bbfd93 Fix easy fluxLoader not caching models 2025-01-16 12:30:31 +08:00
yolain 3a8fcbbcb9 Fix lora not used in xyplot simple when plotting positive prompt #613 2025-01-14 12:47:02 +08:00
yolain a844119335 Change lark-parser dependency to lark 2024-12-30 11:26:51 +08:00
yolain 9edc20e810 Fix some controlnet bug 2024-12-26 00:51:12 +08:00
Bob Du f5efee7f23 fix SyntaxWarning in python 3.12
Signed-off-by: Bob Du <i@bobdu.cc>
2024-12-25 23:28:21 +08:00
yolain 54a7c22296 Fix PromptGen request failure display 2024-12-19 22:06:45 +08:00
yolain 0ab09df6c4 Add add_background of widget on easy imageRembg 2024-12-19 22:05:20 +08:00
yolain 2461869aae Fix xyplot checkpoint bug #565 2024-12-04 16:38:35 +08:00
yolain 25a4420b4f Add noise generate mode (GPU=A1111) on preSamplingCustom and preSamplingAdvanced 2024-11-30 21:19:47 +08:00
yolain e76a8e634c Additions to the last commit 2024-11-18 22:26:13 +08:00
yolain b869fee891 Support mochi 2024-11-08 23:24:20 +08:00
yolain e4b331cd93 Fix a1111_prompt_style not working and use your current device when generating noise #505 2024-11-04 11:10:19 +08:00
yolain ede22dfa27 Fix clipmodel object has no attribute t5xxl bug #494 2024-10-27 21:05:32 +08:00
yolain aa30d9c495 Force the clip model not to skip layers when t5xxl exists. #494 2024-10-27 12:56:03 +08:00
yolain 5b7980facd Fix using only t5xxl clip error for sd35 2024-10-27 12:41:02 +08:00
yolain c51d1fdea2 Fix is link style selector bug when using for loops 2024-10-27 00:35:47 +08:00
yolain 60784bf262 Support model_override,vae_override,clip_override can be input separately to easy fullLoader 2024-10-25 11:20:28 +08:00
yolain 5c278e8d56 Add easy XYInputs: FluxGuidance 2024-10-11 13:37:21 +08:00
yolain 944051f210 Add display trigger word on easy XYInputs: Lora #424 2024-10-11 12:18:30 +08:00
yolain e754b97b99 Fix easyKSampler and xyplot can not use flux model 2024-10-10 20:50:28 +08:00
yolain e0f45f51a6 Add ImageSplitTiles 2024-09-11 17:28:29 +08:00