From df3e143f99f517e77d8db77775f0d452309da7fa Mon Sep 17 00:00:00 2001 From: BigStationW <210248167+BigStationW@users.noreply.github.com> Date: Sun, 18 Jan 2026 05:37:30 +0100 Subject: [PATCH] Update README.md --- README.md | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cc4f21a..c519fa6 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,25 @@ # ComfyUi-TextEncodeEditAdvanced ## Intro + +This is a text encoding node designed for Edit models (Flux Kontext, Qwen Image Edit, Flux 2 Klein...). + +Key features: +- Adjustable Vision Language Model (VLM) resolution via `vl_megapixels` +- Control over the number of images processed via `max_images_allowed` +- Support for up to 3 input images + +image + +## vl_megapixels + +**This parameter is only relevant for Qwen Image Edit (for other Edit models you must set this value to 0).** + Qwen Image Edit uses a Vision Language Model (VLM) to analyze your input images and automatically enhance your prompt with more detailed descriptions. The default TextEncodeQwenImageEdit node downscales your images to 0.15 megapixels before feeding them to the VLM. -This custom node gives you control over that threshold (vl_megapixels), allowing you to eventually find a better sweet spot for your specific use case. +This gives you control over that value, allowing you to eventually find a better sweet spot for your specific use case. By adjusting this threshold, you may achieve: @@ -14,7 +28,10 @@ By adjusting this threshold, you may achieve: https://github.com/user-attachments/assets/23dca6a6-6add-44b5-8777-9c206ea66f9f -When going for vl_megapixels = 0, it has the same effect as stacking multiple ReferenceLatent nodes with each other. +## max_images_allowed +Controls the maximum number of images to process from the available inputs (image1, image2, image3). + +**For example**: If you have 3 images connected to the node, setting this to "1" will only process image1. ## Installation @@ -26,11 +43,7 @@ git clone https://github.com/BigStationW/ComfyUi-TextEncodeEditAdvanced Restart ComfyUI after installation. - ## Usage -Find the **TextEncodeEditAdvanced** node - -image - +Find the **TextEncodeEditAdvanced** node. I also provide [worksflows](https://github.com/BigStationW/ComfyUi-TextEncodeEditAdvanced/tree/main/workflow) for those interested.