feat: integrate MOSS-Image Edit with reference images and LoRA
Browse filesFiles changed (18)
- README.md+1
- chain_injectors/moss_image_edit_injector.pyAdded+228
- core/pipelines/pipeline_input_processor.py+15
- core/pipelines/sd_image_pipeline.py+2
- core/pipelines/workflow_recipes/_partials/conditioning/moss-image.yaml+9
- core/settings.py+2-1
- mcp_tools/common.py+31
- ui/events/chain_handlers.py+36-1
- ui/events/change_handlers.py+4-2
- ui/events/main.py+12-3
- ui/events/run_handlers.py+4-1
- ui/imagegen_ui.py+3-1
- ui/shared/ui_components.py+33-1
- yaml/chain_features.yaml+15
- yaml/constants.yaml+1
- yaml/file_list.yaml+5
- yaml/model_architecture_features.yaml+1
- yaml/task_features.yaml+5
163 unmodified lines164165166167168169163 unmodified lines- Boogu/Boogu-Image-0.1-Edit-Turbo- briaai/Fibo-2.0-dev- briaai/Fibo-2.0-edit-turbo- darask0/MOSS-Image-color-depth-control- HiDream-ai/HiDream-I1-Dev- HiDream-ai/HiDream-I1-Fast163 unmodified lines164165166167168169170163 unmodified lines- Boogu/Boogu-Image-0.1-Edit-Turbo- briaai/Fibo-2.0-dev- briaai/Fibo-2.0-edit-turbo- chinoll/Moss-Image-Edit- darask0/MOSS-Image-color-depth-control- HiDream-ai/HiDream-I1-Dev- HiDream-ai/HiDream-I1-Fast
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228import os
try: from utils.app_utils import ensure_file_downloadedexcept ImportError: ensure_file_downloaded = None
def create_node(assembler, class_type, title=None): try: node = assembler._get_node_template_from_api(class_type) except Exception: try: node = assembler._get_node_template(class_type) except Exception: node = { "inputs": {}, "class_type": class_type, "_meta": {"title": title or class_type} } if title: node.setdefault('_meta', {})['title'] = title return node
def inject(assembler, chain_definition, chain_items): """ Injects MOSS-Image Edit (Reference Image Edit) into the workflow: 1. Loads the officially packaged Edit LoRA (moss_image_edit_lora_rank_64_bf16.safetensors) onto the model path. 2. Loads and scales up to 10 reference images with ImageScaleToTotalPixels. 3. Replaces positive/negative prompt encoding with native TextEncodeMOSSImageEdit nodes, which attach reference image latents and text tokens. 4. Connects patched model and conditioned positive/negative outputs to KSampler. """ if not chain_items: return
# Normalize chain_items: dict or list of dicts/strings edit_format = "Moss-Image-Edit" strength = 1.0 valid_images = []
if isinstance(chain_items, dict): chain_items = [chain_items]
if isinstance(chain_items, list): for item in chain_items: if not item: continue if isinstance(item, dict): raw_imgs = item.get('images') if isinstance(raw_imgs, list): for img in raw_imgs: p = img.get('image') or img.get('filename') or img.get('path') if isinstance(img, dict) else img if p and isinstance(p, str) and p.strip(): valid_images.append(p.strip()) elif isinstance(raw_imgs, str) and raw_imgs.strip(): valid_images.append(raw_imgs.strip())
p = item.get('image') or item.get('filename') or item.get('path') if p and isinstance(p, str) and p.strip(): valid_images.append(p.strip())
if 'edit_format' in item: edit_format = item['edit_format'] if 'strength' in item: try: strength = float(item['strength']) except (ValueError, TypeError): pass elif isinstance(item, str) and item.strip(): valid_images.append(item.strip())
if not valid_images: return
valid_images = valid_images[:10]
lora_filename = "moss_image_edit_lora_rank_64_bf16.safetensors" if ensure_file_downloaded: try: ensure_file_downloaded(lora_filename) except Exception as e: print(f"Warning: Failed to ensure '{lora_filename}' downloaded: {e}")
ksampler_name = chain_definition.get('ksampler_node', 'ksampler') pos_prompt_name = chain_definition.get('pos_prompt_node', 'pos_prompt') neg_prompt_name = chain_definition.get('neg_prompt_node', 'neg_prompt') clip_loader_name = chain_definition.get('clip_loader_node', 'clip_loader') vae_loader_name = chain_definition.get('vae_loader_node', 'vae_loader')
if ksampler_name not in assembler.node_map: print(f"Warning: Target node '{ksampler_name}' for MOSS-Image Edit chain not found. Skipping.") return
ksampler_id = assembler.node_map[ksampler_name]
if 'model' not in assembler.workflow[ksampler_id]['inputs']: print(f"Warning: KSampler node '{ksampler_name}' is missing 'model' input. Skipping.") return
current_model_connection = assembler.workflow[ksampler_id]['inputs']['model']
vae_connection = None if vae_loader_name in assembler.node_map: vae_connection = [assembler.node_map[vae_loader_name], 0] else: for node_id, node in assembler.workflow.items(): if isinstance(node, dict) and node.get('class_type') == 'VAELoader': vae_connection = [node_id, 0] break
if not vae_connection: print("Warning: VAE connection not found for MOSS-Image Edit. Skipping.") return
pos_prompt_id = assembler.node_map.get(pos_prompt_name) neg_prompt_id = assembler.node_map.get(neg_prompt_name)
clip_connection = None if clip_loader_name in assembler.node_map: clip_connection = [assembler.node_map[clip_loader_name], 0] elif pos_prompt_id and 'clip' in assembler.workflow.get(pos_prompt_id, {}).get('inputs', {}): clip_connection = assembler.workflow[pos_prompt_id]['inputs']['clip'] else: for node_id, node in assembler.workflow.items(): if isinstance(node, dict) and node.get('class_type') == 'CLIPLoader': clip_connection = [node_id, 0] break
if not clip_connection: print("Warning: CLIP connection not found for MOSS-Image Edit. Skipping.") return
# 1. Inject LoRA loader on model path if strength > 0 if strength > 0.0: lora_loader_id = assembler._get_unique_id() lora_loader_node = create_node(assembler, "LoraLoaderModelOnly", "Load LoRA (MOSS-Image Edit)") lora_loader_node['inputs']['lora_name'] = lora_filename lora_loader_node['inputs']['strength_model'] = strength lora_loader_node['inputs']['model'] = current_model_connection assembler.workflow[lora_loader_id] = lora_loader_node current_model_connection = [lora_loader_id, 0]
megapixels = float(chain_definition.get('megapixels', 1.0))
# 2. Process Reference Images scale_image_ids = [] for i, img_filename in enumerate(valid_images): load_id = assembler._get_unique_id() load_node = create_node(assembler, "LoadImage", f"Load Reference Image {i+1} (MOSS Edit)") load_node['inputs']['image'] = img_filename assembler.workflow[load_id] = load_node
scale_id = assembler._get_unique_id() scale_node = create_node(assembler, "ImageScaleToTotalPixels", f"Scale Reference {i+1} (MOSS Edit)") scale_node['inputs']['upscale_method'] = "lanczos" scale_node['inputs']['megapixels'] = megapixels scale_node['inputs']['resolution_steps'] = 1 scale_node['inputs']['image'] = [load_id, 0] assembler.workflow[scale_id] = scale_node scale_image_ids.append(scale_id)
# 3. Extract Prompt Texts pos_text = "" if pos_prompt_id and pos_prompt_id in assembler.workflow: pos_text = assembler.workflow[pos_prompt_id]['inputs'].get('text', '') or assembler.workflow[pos_prompt_id]['inputs'].get('prompt', '') elif hasattr(assembler, 'ui_values') and isinstance(assembler.ui_values, dict): pos_text = assembler.ui_values.get('positive_prompt') or assembler.ui_values.get('prompt') or ''
neg_text = "" if neg_prompt_id and neg_prompt_id in assembler.workflow: neg_text = assembler.workflow[neg_prompt_id]['inputs'].get('text', '') or assembler.workflow[neg_prompt_id]['inputs'].get('prompt', '') elif hasattr(assembler, 'ui_values') and isinstance(assembler.ui_values, dict): neg_text = assembler.ui_values.get('negative_prompt') or assembler.ui_values.get('neg_prompt') or ''
# 4. Positive TextEncodeMOSSImageEdit pos_edit_id = assembler._get_unique_id() pos_edit_node = create_node(assembler, "TextEncodeMOSSImageEdit", "Text Encode MOSS-Image Edit") pos_edit_node['inputs']['clip'] = clip_connection pos_edit_node['inputs']['prompt'] = pos_text pos_edit_node['inputs']['vae'] = vae_connection pos_edit_node['inputs']['edit_format'] = edit_format pos_edit_node['inputs']['image_strength'] = 1.0 for i, sc_id in enumerate(scale_image_ids): pos_edit_node['inputs'][f"images.image_{i}"] = [sc_id, 0] pos_edit_node['inputs'] = {k: v for k, v in pos_edit_node['inputs'].items() if v is not None} assembler.workflow[pos_edit_id] = pos_edit_node
# 5. Negative TextEncodeMOSSImageEdit neg_edit_id = assembler._get_unique_id() neg_edit_node = create_node(assembler, "TextEncodeMOSSImageEdit", "Text Encode MOSS-Image Edit") neg_edit_node['inputs']['clip'] = clip_connection neg_edit_node['inputs']['prompt'] = neg_text neg_edit_node['inputs']['vae'] = vae_connection neg_edit_node['inputs']['edit_format'] = edit_format neg_edit_node['inputs']['image_strength'] = 1.0 for i, sc_id in enumerate(scale_image_ids): neg_edit_node['inputs'][f"images.image_{i}"] = [sc_id, 0] neg_edit_node['inputs'] = {k: v for k, v in neg_edit_node['inputs'].items() if v is not None} assembler.workflow[neg_edit_id] = neg_edit_node
# 6. Reconnect model and redirect conditioning references in workflow assembler.workflow[ksampler_id]['inputs']['model'] = current_model_connection
# Redirect all existing connections that referenced pos_prompt_id / neg_prompt_id if pos_prompt_id: for node in assembler.workflow.values(): if isinstance(node, dict) and 'inputs' in node: for k, v in node['inputs'].items(): if isinstance(v, list) and len(v) == 2 and v[0] == pos_prompt_id: node['inputs'][k] = [pos_edit_id, 0]
if neg_prompt_id: for node in assembler.workflow.values(): if isinstance(node, dict) and 'inputs' in node: for k, v in node['inputs'].items(): if isinstance(v, list) and len(v) == 2 and v[0] == neg_prompt_id: node['inputs'][k] = [neg_edit_id, 0]
# Clean up original CLIPTextEncode nodes if they are in workflow if pos_prompt_id and pos_prompt_id in assembler.workflow: del assembler.workflow[pos_prompt_id] if neg_prompt_id and neg_prompt_id in assembler.workflow: del assembler.workflow[neg_prompt_id]
print(f"MOSS-Image Edit injector applied with {len(valid_images)} reference image(s) (format: {edit_format}, strength: {strength}).")491 unmodified lines49249349449549649715 unmodified lines513514515516517491 unmodified lines'end_percent': end_percent})return {"active_loras_for_gpu": active_loras_for_gpu,"active_loras_for_meta": active_loras_for_meta,15 unmodified lines"active_ming_image_prompt_enhancer": active_ming_image_prompt_enhancer,"active_flux3_prompt_upsampler": active_flux3_prompt_upsampler,"active_moss_image_control": active_moss_image_control,"temp_files_to_clean": temp_files_to_clean}491 unmodified lines49249349449549649749849950050150250350450550650750850951051115 unmodified lines527528529530531532491 unmodified lines'end_percent': end_percent})moss_image_edit_data = ui_inputs.get('moss_image_edit_data', [])active_moss_image_edit = []if 'moss_image_edit' in enabled_chains and moss_image_edit_data:for img in moss_image_edit_data:if img:if isinstance(img, str):active_moss_image_edit.append(img)elif hasattr(img, 'save'):if not os.path.exists(INPUT_DIR): os.makedirs(INPUT_DIR)temp_path = os.path.join(INPUT_DIR, f"temp_moss_edit_{random.randint(1000, 9999)}.png")img.save(temp_path, "PNG")temp_files_to_clean.append(temp_path)active_moss_image_edit.append(os.path.basename(temp_path))return {"active_loras_for_gpu": active_loras_for_gpu,"active_loras_for_meta": active_loras_for_meta,15 unmodified lines"active_ming_image_prompt_enhancer": active_ming_image_prompt_enhancer,"active_flux3_prompt_upsampler": active_flux3_prompt_upsampler,"active_moss_image_control": active_moss_image_control,"active_moss_image_edit": active_moss_image_edit,"temp_files_to_clean": temp_files_to_clean}
122 unmodified lines12312412512612712855 unmodified lines184185186187188189122 unmodified linesactive_ming_image_prompt_enhancer = processed.get("active_ming_image_prompt_enhancer", [])active_flux3_prompt_upsampler = processed.get("active_flux3_prompt_upsampler", [])active_moss_image_control = processed.get("active_moss_image_control", [])loras_string = f"LoRAs: [{', '.join(active_loras_for_meta)}]" if active_loras_for_meta else ""55 unmodified lines"ming_image_prompt_enhancer_chain": active_ming_image_prompt_enhancer,"flux3_prompt_upsampler_chain": active_flux3_prompt_upsampler,"moss_image_control_chain": active_moss_image_control,"vae_chain": [ui_inputs.get('vae_name')] if (ui_inputs.get('vae_name') and 'vae' in enabled_chains) else [],"hidream_o1_smoothing_chain": hidream_o1_smoothing_data,"pid_chain": [ui_inputs.get('pid_settings', 'OFF')] if is_pid_enabled else [],122 unmodified lines12312412512612712812955 unmodified lines185186187188189190191122 unmodified linesactive_ming_image_prompt_enhancer = processed.get("active_ming_image_prompt_enhancer", [])active_flux3_prompt_upsampler = processed.get("active_flux3_prompt_upsampler", [])active_moss_image_control = processed.get("active_moss_image_control", [])active_moss_image_edit = processed.get("active_moss_image_edit", [])loras_string = f"LoRAs: [{', '.join(active_loras_for_meta)}]" if active_loras_for_meta else ""55 unmodified lines"ming_image_prompt_enhancer_chain": active_ming_image_prompt_enhancer,"flux3_prompt_upsampler_chain": active_flux3_prompt_upsampler,"moss_image_control_chain": active_moss_image_control,"moss_image_edit_chain": active_moss_image_edit,"vae_chain": [ui_inputs.get('vae_name')] if (ui_inputs.get('vae_name') and 'vae' in enabled_chains) else [],"hidream_o1_smoothing_chain": hidream_o1_smoothing_data,"pid_chain": [ui_inputs.get('pid_settings', 'OFF')] if is_pid_enabled else [],
75 unmodified lines76777879808175 unmodified linesvae_loader_node: "vae_loader"megapixels: 1.0dynamic_pid_chains:pid_chain:ksampler_node: "ksampler"75 unmodified lines76777879808182838485868788899075 unmodified linesvae_loader_node: "vae_loader"megapixels: 1.0dynamic_moss_image_edit_chains:moss_image_edit_chain:ksampler_node: "ksampler"clip_loader_node: "clip_loader"vae_loader_node: "vae_loader"pos_prompt_node: "pos_prompt"neg_prompt_node: "neg_prompt"megapixels: 1.0dynamic_pid_chains:pid_chain:ksampler_node: "ksampler"
197 unmodified lines1981992002012022033 unmodified lines207208209210211212213197 unmodified linesMAX_CONDITIONINGS = _constants.get('MAX_CONDITIONINGS', 10)MAX_CONTROLNETS = _constants.get('MAX_CONTROLNETS', 5)MAX_IPADAPTERS = _constants.get('MAX_IPADAPTERS', 5)LORA_SOURCE_CHOICES = _constants.get('LORA_SOURCE_CHOICES', ["Civitai", "Hugging Face", "Upload File"])RESOLUTION_MAP = _constants.get('RESOLUTION_MAP', {})MULTIPLIERS_MAP = _constants.get('MULTIPLIERS_MAP', {})3 unmodified linesMODEL_DEFAULTS_CONFIG = load_model_defaults()except Exception as e:print(f"FATAL: Could not load constants from YAML. Error: {e}")MAX_LORAS, MAX_EMBEDDINGS, MAX_CONDITIONINGS, MAX_CONTROLNETS, MAX_IPADAPTERS = 10, 5, 10, 5, 5LORA_SOURCE_CHOICES = ["Civitai", "Hugging Face", "Upload File"]RESOLUTION_MAP = {}MULTIPLIERS_MAP = {}197 unmodified lines1981992002012022032043 unmodified lines208209210211212213214197 unmodified linesMAX_CONDITIONINGS = _constants.get('MAX_CONDITIONINGS', 10)MAX_CONTROLNETS = _constants.get('MAX_CONTROLNETS', 5)MAX_IPADAPTERS = _constants.get('MAX_IPADAPTERS', 5)MAX_MOSS_IMAGE_EDITS = _constants.get('MAX_MOSS_IMAGE_EDITS', 10)LORA_SOURCE_CHOICES = _constants.get('LORA_SOURCE_CHOICES', ["Civitai", "Hugging Face", "Upload File"])RESOLUTION_MAP = _constants.get('RESOLUTION_MAP', {})MULTIPLIERS_MAP = _constants.get('MULTIPLIERS_MAP', {})3 unmodified linesMODEL_DEFAULTS_CONFIG = load_model_defaults()except Exception as e:print(f"FATAL: Could not load constants from YAML. Error: {e}")MAX_LORAS, MAX_EMBEDDINGS, MAX_CONDITIONINGS, MAX_CONTROLNETS, MAX_IPADAPTERS, MAX_MOSS_IMAGE_EDITS = 10, 5, 10, 5, 5, 10LORA_SOURCE_CHOICES = ["Civitai", "Hugging Face", "Upload File"]RESOLUTION_MAP = {}MULTIPLIERS_MAP = {}
446 unmodified lines447448449450451452247 unmodified lines7007017027037047054 unmodified lines710711712713714715123 unmodified lines839840841842843844446 unmodified linesqwen_image_edit_data = []hidream_o1_reference_data = []sensenova_reference_data = []cond_prompts = []cond_widths = []cond_heights = []247 unmodified linesimg = _parse_image_param(item.get("image"))if img:sensenova_reference_data.append(img)elif itype == "vae":v_source = item.get("source", item.get("vae_source", "Civitai"))v_val = item.get("vae_value", item.get("value", item.get("vae_id", item.get("vae_name", ""))))4 unmodified linesif lora_data: ui_inputs["lora_data"] = lora_dataif embedding_data: ui_inputs["embedding_data"] = embedding_dataif controlnet_data: ui_inputs["controlnet_data"] = controlnet_dataif ipadapter_images:preset = ipadapter_global_preset or "STANDARD (medium strength)"123 unmodified linesexcept (ValueError, TypeError):pass_TASKS_DB[task_id]["progress"] = 50# Execute Pipeline446 unmodified lines447448449450451452453247 unmodified lines7017027037047057067077087097107117127137147157164 unmodified lines721722723724725726727123 unmodified lines851852853854855856857858859860861862863864865866867868869870871872873874875446 unmodified linesqwen_image_edit_data = []hidream_o1_reference_data = []sensenova_reference_data = []moss_image_edit_data = []cond_prompts = []cond_widths = []cond_heights = []247 unmodified linesimg = _parse_image_param(item.get("image"))if img:sensenova_reference_data.append(img)elif itype == "moss_image_edit":if "images" in item and isinstance(item["images"], list):for img_item in item["images"]:p_img = _parse_image_param(img_item)if p_img:moss_image_edit_data.append(p_img)elif "image" in item:p_img = _parse_image_param(item["image"])if p_img:moss_image_edit_data.append(p_img)elif itype == "vae":v_source = item.get("source", item.get("vae_source", "Civitai"))v_val = item.get("vae_value", item.get("value", item.get("vae_id", item.get("vae_name", ""))))4 unmodified linesif lora_data: ui_inputs["lora_data"] = lora_dataif embedding_data: ui_inputs["embedding_data"] = embedding_dataif controlnet_data: ui_inputs["controlnet_data"] = controlnet_dataif moss_image_edit_data: ui_inputs["moss_image_edit_data"] = moss_image_edit_dataif ipadapter_images:preset = ipadapter_global_preset or "STANDARD (medium strength)"123 unmodified linesexcept (ValueError, TypeError):passmoss_edit_val = params.get("moss_image_edit")if moss_edit_val:m_imgs = []if isinstance(moss_edit_val, dict):raw_imgs = moss_edit_val.get("images", [])if isinstance(raw_imgs, list):for img_item in raw_imgs:p_img = _parse_image_param(img_item)if p_img: m_imgs.append(p_img)elif "image" in moss_edit_val:p_img = _parse_image_param(moss_edit_val["image"])if p_img: m_imgs.append(p_img)elif isinstance(moss_edit_val, list):for img_item in moss_edit_val:p_img = _parse_image_param(img_item)if p_img: m_imgs.append(p_img)if m_imgs:ui_inputs["moss_image_edit_data"] = m_imgs_TASKS_DB[task_id]["progress"] = 50# Execute Pipeline
688 unmodified lines689690691692688 unmodified linesadd_outputs = [count_state, add_button, del_button] + ref_rowsdel_outputs = [count_state, add_button, del_button] + ref_rows + imagesadd_button.click(fn=add_ref_row, inputs=[count_state], outputs=add_outputs, show_progress=False)del_button.click(fn=del_ref_row, inputs=[count_state], outputs=del_outputs, show_progress=False)688 unmodified lines689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727688 unmodified linesadd_outputs = [count_state, add_button, del_button] + ref_rowsdel_outputs = [count_state, add_button, del_button] + ref_rows + imagesadd_button.click(fn=add_ref_row, inputs=[count_state], outputs=add_outputs, show_progress=False)del_button.click(fn=del_ref_row, inputs=[count_state], outputs=del_outputs, show_progress=False)def create_moss_image_edit_event_handlers(prefix, ui_components):ref_rows = ui_components.get(f'moss_image_edit_rows_{prefix}')if not ref_rows: returncount_state = ui_components[f'moss_image_edit_count_state_{prefix}']add_button = ui_components[f'add_moss_image_edit_button_{prefix}']del_button = ui_components[f'delete_moss_image_edit_button_{prefix}']images = ui_components[f'moss_image_edit_images_{prefix}']max_count = len(ref_rows)def add_ref_row(c):c += 1return {count_state: c,ref_rows[c - 1]: gr.update(visible=True),add_button: gr.update(visible=c < max_count),del_button: gr.update(visible=True),}def del_ref_row(c):c -= 1return {count_state: c,ref_rows[c]: gr.update(visible=False),images[c]: None,add_button: gr.update(visible=True),del_button: gr.update(visible=c > 1),}add_outputs = [count_state, add_button, del_button] + ref_rowsdel_outputs = [count_state, add_button, del_button] + ref_rows + imagesadd_button.click(fn=add_ref_row, inputs=[count_state], outputs=add_outputs, show_progress=False)del_button.click(fn=del_ref_row, inputs=[count_state], outputs=del_outputs, show_progress=False)
14 unmodified lines1516171819202166 unmodified lines88899091929338 unmodified lines13213313413513613713874 unmodified lines21321421521621721814 unmodified linesload_ipadapter_config)def make_update_fn(m_comp, cat_comp, ar_comp, width_comp, height_comp, cn_types, cn_series, cn_filepaths, ipa_preset, lora_acc, cn_acc, ipa_acc, sd3_ipa_acc, flux1_ipa_acc, style_acc, embed_acc, cond_acc, ref_latent_acc, hidream_o1_ref_acc, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp, pid_acc=None, vae_acc=None, joyai_ref_acc=None, krea2_identity_edit_acc=None, krea2_reference_edit_acc=None, qwen_image_edit_acc=None, ref_img_acc=None, sensenova_ref_acc=None, task_type=None, type_comp=None, qwen_pe_acc=None, ming_pe_acc=None, flux3_pe_acc=None, moss_image_control_acc=None):def update_fn(*args):arch = args[0]category = args[1]66 unmodified linesif ming_pe_acc: updates[ming_pe_acc] = gr.update(visible=('ming_image_prompt_enhancer' in enabled_chains))if flux3_pe_acc: updates[flux3_pe_acc] = gr.update(visible=('flux3_prompt_upsampler' in enabled_chains))if moss_image_control_acc: updates[moss_image_control_acc] = gr.update(visible=('moss_image_control' in enabled_chains))if ar_comp:res_key = arch_model_type38 unmodified linesreturn update_fndef make_model_change_fn(cat_comp_ref, ar_comp, width_comp, height_comp, cn_types, cn_series, cn_filepaths, arch_comp_ref, ipa_preset, lora_acc, cn_acc, ipa_acc, sd3_ipa_acc, flux1_ipa_acc, style_acc, embed_acc, cond_acc, ref_latent_acc, hidream_o1_ref_acc, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp, pid_acc=None, vae_acc=None, joyai_ref_acc=None, krea2_identity_edit_acc=None, krea2_reference_edit_acc=None, qwen_image_edit_acc=None, ref_img_acc=None, sensenova_ref_acc=None, task_type=None, type_comp=None, qwen_pe_acc=None, ming_pe_acc=None, flux3_pe_acc=None, moss_image_control_acc=None):def change_fn(*args):model_name = args[0]idx = 174 unmodified linesif ming_pe_acc: updates[ming_pe_acc] = gr.update(visible=('ming_image_prompt_enhancer' in enabled_chains))if flux3_pe_acc: updates[flux3_pe_acc] = gr.update(visible=('flux3_prompt_upsampler' in enabled_chains))if moss_image_control_acc: updates[moss_image_control_acc] = gr.update(visible=('moss_image_control' in enabled_chains))if ar_comp:res_key = arch_model_type14 unmodified lines1516171819202166 unmodified lines8889909192939438 unmodified lines13313413513613713813974 unmodified lines21421521621721821922014 unmodified linesload_ipadapter_config)def make_update_fn(m_comp, cat_comp, ar_comp, width_comp, height_comp, cn_types, cn_series, cn_filepaths, ipa_preset, lora_acc, cn_acc, ipa_acc, sd3_ipa_acc, flux1_ipa_acc, style_acc, embed_acc, cond_acc, ref_latent_acc, hidream_o1_ref_acc, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp, pid_acc=None, vae_acc=None, joyai_ref_acc=None, krea2_identity_edit_acc=None, krea2_reference_edit_acc=None, qwen_image_edit_acc=None, ref_img_acc=None, sensenova_ref_acc=None, task_type=None, type_comp=None, qwen_pe_acc=None, ming_pe_acc=None, flux3_pe_acc=None, moss_image_control_acc=None, moss_image_edit_acc=None):def update_fn(*args):arch = args[0]category = args[1]66 unmodified linesif ming_pe_acc: updates[ming_pe_acc] = gr.update(visible=('ming_image_prompt_enhancer' in enabled_chains))if flux3_pe_acc: updates[flux3_pe_acc] = gr.update(visible=('flux3_prompt_upsampler' in enabled_chains))if moss_image_control_acc: updates[moss_image_control_acc] = gr.update(visible=('moss_image_control' in enabled_chains))if moss_image_edit_acc: updates[moss_image_edit_acc] = gr.update(visible=('moss_image_edit' in enabled_chains))if ar_comp:res_key = arch_model_type38 unmodified linesreturn update_fndef make_model_change_fn(cat_comp_ref, ar_comp, width_comp, height_comp, cn_types, cn_series, cn_filepaths, arch_comp_ref, ipa_preset, lora_acc, cn_acc, ipa_acc, sd3_ipa_acc, flux1_ipa_acc, style_acc, embed_acc, cond_acc, ref_latent_acc, hidream_o1_ref_acc, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp, pid_acc=None, vae_acc=None, joyai_ref_acc=None, krea2_identity_edit_acc=None, krea2_reference_edit_acc=None, qwen_image_edit_acc=None, ref_img_acc=None, sensenova_ref_acc=None, task_type=None, type_comp=None, qwen_pe_acc=None, ming_pe_acc=None, flux3_pe_acc=None, moss_image_control_acc=None, moss_image_edit_acc=None):def change_fn(*args):model_name = args[0]idx = 174 unmodified linesif ming_pe_acc: updates[ming_pe_acc] = gr.update(visible=('ming_image_prompt_enhancer' in enabled_chains))if flux3_pe_acc: updates[flux3_pe_acc] = gr.update(visible=('flux3_prompt_upsampler' in enabled_chains))if moss_image_control_acc: updates[moss_image_control_acc] = gr.update(visible=('moss_image_control' in enabled_chains))if moss_image_edit_acc: updates[moss_image_edit_acc] = gr.update(visible=('moss_image_edit' in enabled_chains))if ar_comp:res_key = arch_model_type
14 unmodified lines1516171819202144 unmodified lines66676869707133 unmodified lines1051061071081091105 unmodified lines11611711811912012112231 unmodified lines15415515615715815910 unmodified lines17017117217317417517615 unmodified lines19219319419519619764 unmodified lines26226326426526626735 unmodified lines30330430530630730814 unmodified linescreate_krea2_identity_edit_event_handlers,create_krea2_reference_edit_event_handlers,create_qwen_image_edit_event_handlers,create_reference_image_event_handlers)from .change_handlers import (make_update_fn,44 unmodified linesming_pe_accordion = ui_components.get(f'ming_image_prompt_enhancer_accordion_{prefix}')flux3_pe_accordion = ui_components.get(f'flux3_prompt_upsampler_accordion_{prefix}')moss_control_accordion = ui_components.get(f'moss_image_control_accordion_{prefix}')ipa_preset_list = ui_components.get(f'ipadapter_final_preset_{prefix}')33 unmodified linesif ming_pe_accordion: outputs.append(ming_pe_accordion)if flux3_pe_accordion: outputs.append(flux3_pe_accordion)if moss_control_accordion: outputs.append(moss_control_accordion)if ipa_preset_list: outputs.append(ipa_preset_list)outputs.extend(valid_extra_comps)5 unmodified linesref_latent_accordion, hidream_o1_ref_accordion, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp,pid_acc=pid_accordion, vae_acc=vae_accordion, joyai_ref_acc=joyai_ref_accordion, krea2_identity_edit_acc=krea2_identity_edit_accordion, krea2_reference_edit_acc=krea2_reference_edit_accordion, qwen_image_edit_acc=qwen_image_edit_accordion, ref_img_acc=ref_img_accordion, sensenova_ref_acc=sensenova_ref_accordion,task_type=task_type, type_comp=type_comp, qwen_pe_acc=qwen_pe_accordion, ming_pe_acc=ming_pe_accordion, flux3_pe_acc=flux3_pe_accordion,moss_image_control_acc=moss_control_accordion)inputs = [arch_comp, cat_comp]if aspect_ratio_comp:31 unmodified linesif ming_pe_accordion: outputs2.append(ming_pe_accordion)if flux3_pe_accordion: outputs2.append(flux3_pe_accordion)if moss_control_accordion: outputs2.append(moss_control_accordion)if ipa_preset_list: outputs2.append(ipa_preset_list)outputs2.extend(valid_extra_comps)10 unmodified linesref_latent_accordion, hidream_o1_ref_accordion, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp,pid_acc=pid_accordion, vae_acc=vae_accordion, joyai_ref_acc=joyai_ref_accordion, krea2_identity_edit_acc=krea2_identity_edit_accordion, krea2_reference_edit_acc=krea2_reference_edit_accordion, qwen_image_edit_acc=qwen_image_edit_accordion, ref_img_acc=ref_img_accordion, sensenova_ref_acc=sensenova_ref_accordion,task_type=task_type, type_comp=type_comp, qwen_pe_acc=qwen_pe_accordion, ming_pe_acc=ming_pe_accordion, flux3_pe_acc=flux3_pe_accordion,moss_image_control_acc=moss_control_accordion)if type_comp:inputs2.append(type_comp)15 unmodified linescreate_krea2_reference_edit_event_handlers(prefix, ui_components)create_qwen_image_edit_event_handlers(prefix, ui_components)create_reference_image_event_handlers(prefix, ui_components)create_run_event(prefix, task_type, ui_components)# Dynamic Type toggle event for unified imagegen UI64 unmodified linesf'ming_image_prompt_enhancer_accordion_{prefix}': 'ming_image_prompt_enhancer',f'flux3_prompt_upsampler_accordion_{prefix}': 'flux3_prompt_upsampler',f'moss_image_control_accordion_{prefix}': 'moss_image_control',f'pid_accordion_{prefix}': 'pid',f'vae_accordion_{prefix}': 'vae',}35 unmodified lines'ming_image_prompt_enhancer_accordion_imagegen','flux3_prompt_upsampler_accordion_imagegen','moss_image_control_accordion_imagegen','pid_accordion_imagegen', 'vae_accordion_imagegen',]for key in accordion_keys:14 unmodified lines151617181920212244 unmodified lines6768697071727333 unmodified lines1071081091101111121135 unmodified lines11912012112212312412512631 unmodified lines15815916016116216316410 unmodified lines17517617717817918018118215 unmodified lines19819920020120220320464 unmodified lines26927027127227327427535 unmodified lines31131231331431531631714 unmodified linescreate_krea2_identity_edit_event_handlers,create_krea2_reference_edit_event_handlers,create_qwen_image_edit_event_handlers,create_reference_image_event_handlers,create_moss_image_edit_event_handlers)from .change_handlers import (make_update_fn,44 unmodified linesming_pe_accordion = ui_components.get(f'ming_image_prompt_enhancer_accordion_{prefix}')flux3_pe_accordion = ui_components.get(f'flux3_prompt_upsampler_accordion_{prefix}')moss_control_accordion = ui_components.get(f'moss_image_control_accordion_{prefix}')moss_edit_accordion = ui_components.get(f'moss_image_edit_accordion_{prefix}')ipa_preset_list = ui_components.get(f'ipadapter_final_preset_{prefix}')33 unmodified linesif ming_pe_accordion: outputs.append(ming_pe_accordion)if flux3_pe_accordion: outputs.append(flux3_pe_accordion)if moss_control_accordion: outputs.append(moss_control_accordion)if moss_edit_accordion: outputs.append(moss_edit_accordion)if ipa_preset_list: outputs.append(ipa_preset_list)outputs.extend(valid_extra_comps)5 unmodified linesref_latent_accordion, hidream_o1_ref_accordion, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp,pid_acc=pid_accordion, vae_acc=vae_accordion, joyai_ref_acc=joyai_ref_accordion, krea2_identity_edit_acc=krea2_identity_edit_accordion, krea2_reference_edit_acc=krea2_reference_edit_accordion, qwen_image_edit_acc=qwen_image_edit_accordion, ref_img_acc=ref_img_accordion, sensenova_ref_acc=sensenova_ref_accordion,task_type=task_type, type_comp=type_comp, qwen_pe_acc=qwen_pe_accordion, ming_pe_acc=ming_pe_accordion, flux3_pe_acc=flux3_pe_accordion,moss_image_control_acc=moss_control_accordion,moss_image_edit_acc=moss_edit_accordion)inputs = [arch_comp, cat_comp]if aspect_ratio_comp:31 unmodified linesif ming_pe_accordion: outputs2.append(ming_pe_accordion)if flux3_pe_accordion: outputs2.append(flux3_pe_accordion)if moss_control_accordion: outputs2.append(moss_control_accordion)if moss_edit_accordion: outputs2.append(moss_edit_accordion)if ipa_preset_list: outputs2.append(ipa_preset_list)outputs2.extend(valid_extra_comps)10 unmodified linesref_latent_accordion, hidream_o1_ref_accordion, prompt_comp, neg_prompt_comp, steps_comp, cfg_comp, sampler_comp, scheduler_comp,pid_acc=pid_accordion, vae_acc=vae_accordion, joyai_ref_acc=joyai_ref_accordion, krea2_identity_edit_acc=krea2_identity_edit_accordion, krea2_reference_edit_acc=krea2_reference_edit_accordion, qwen_image_edit_acc=qwen_image_edit_accordion, ref_img_acc=ref_img_accordion, sensenova_ref_acc=sensenova_ref_accordion,task_type=task_type, type_comp=type_comp, qwen_pe_acc=qwen_pe_accordion, ming_pe_acc=ming_pe_accordion, flux3_pe_acc=flux3_pe_accordion,moss_image_control_acc=moss_control_accordion,moss_image_edit_acc=moss_edit_accordion)if type_comp:inputs2.append(type_comp)15 unmodified linescreate_krea2_reference_edit_event_handlers(prefix, ui_components)create_qwen_image_edit_event_handlers(prefix, ui_components)create_reference_image_event_handlers(prefix, ui_components)create_moss_image_edit_event_handlers(prefix, ui_components)create_run_event(prefix, task_type, ui_components)# Dynamic Type toggle event for unified imagegen UI64 unmodified linesf'ming_image_prompt_enhancer_accordion_{prefix}': 'ming_image_prompt_enhancer',f'flux3_prompt_upsampler_accordion_{prefix}': 'flux3_prompt_upsampler',f'moss_image_control_accordion_{prefix}': 'moss_image_control',f'moss_image_edit_accordion_{prefix}': 'moss_image_edit',f'pid_accordion_{prefix}': 'pid',f'vae_accordion_{prefix}': 'vae',}35 unmodified lines'ming_image_prompt_enhancer_accordion_imagegen','flux3_prompt_upsampler_accordion_imagegen','moss_image_control_accordion_imagegen','moss_image_edit_accordion_imagegen','pid_accordion_imagegen', 'vae_accordion_imagegen',]for key in accordion_keys:
118 unmodified lines1191201211221231244 unmodified lines12913013113213313413526 unmodified lines162163164165166167118 unmodified lineskrea2_reference_edit_data_components = ui_components.get(f'all_krea2_reference_edit_components_flat_{prefix}', [])qwen_image_edit_data_components = ui_components.get(f'all_qwen_image_edit_components_flat_{prefix}', [])reference_image_data_components = ui_components.get(f'all_reference_image_components_flat_{prefix}', [])run_inputs_map['vae_source'] = ui_components.get(f'vae_source_{prefix}')run_inputs_map['vae_id'] = ui_components.get(f'vae_id_{prefix}')4 unmodified linesall_chains = [lora_data_components, controlnet_data_components, ipadapter_data_components,sd3_ipadapter_data_components, flux1_ipadapter_data_components, style_data_components,embedding_data_components, conditioning_data_components, reference_latent_data_components, hidream_o1_reference_data_components, sensenova_reference_data_components, joyai_reference_data_components, krea2_identity_edit_data_components, krea2_reference_edit_data_components, qwen_image_edit_data_components, reference_image_data_components]for chain in all_chains:if chain:26 unmodified linesassign_chain_data('krea2_reference_edit_data', krea2_reference_edit_data_components)assign_chain_data('qwen_image_edit_data', qwen_image_edit_data_components)assign_chain_data('reference_image_data', reference_image_data_components)if 'ui_type' in ui_dict:ui_dict['task_type'] = TYPE_TASK_MAP.get(ui_dict['ui_type'], 'txt2img')118 unmodified lines1191201211221231241254 unmodified lines13013113213313413513613726 unmodified lines164165166167168169170118 unmodified lineskrea2_reference_edit_data_components = ui_components.get(f'all_krea2_reference_edit_components_flat_{prefix}', [])qwen_image_edit_data_components = ui_components.get(f'all_qwen_image_edit_components_flat_{prefix}', [])reference_image_data_components = ui_components.get(f'all_reference_image_components_flat_{prefix}', [])moss_image_edit_data_components = ui_components.get(f'all_moss_image_edit_components_flat_{prefix}', [])run_inputs_map['vae_source'] = ui_components.get(f'vae_source_{prefix}')run_inputs_map['vae_id'] = ui_components.get(f'vae_id_{prefix}')4 unmodified linesall_chains = [lora_data_components, controlnet_data_components, ipadapter_data_components,sd3_ipadapter_data_components, flux1_ipadapter_data_components, style_data_components,embedding_data_components, conditioning_data_components, reference_latent_data_components, hidream_o1_reference_data_components, sensenova_reference_data_components, joyai_reference_data_components, krea2_identity_edit_data_components, krea2_reference_edit_data_components, qwen_image_edit_data_components, reference_image_data_components,moss_image_edit_data_components]for chain in all_chains:if chain:26 unmodified linesassign_chain_data('krea2_reference_edit_data', krea2_reference_edit_data_components)assign_chain_data('qwen_image_edit_data', qwen_image_edit_data_components)assign_chain_data('reference_image_data', reference_image_data_components)assign_chain_data('moss_image_edit_data', moss_image_edit_data_components)if 'ui_type' in ui_dict:ui_dict['task_type'] = TYPE_TASK_MAP.get(ui_dict['ui_type'], 'txt2img')
9 unmodified lines10111213141516176 unmodified lines1931941951961971989 unmodified linescreate_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,create_reference_latent_ui, create_hidream_o1_reference_ui, create_sensenova_reference_ui, create_joyai_reference_ui, create_reference_image_ui, create_krea2_identity_edit_ui, create_krea2_reference_edit_ui, create_qwen_image_edit_ui,create_pid_ui, create_qwen_image_2_1_prompt_enhancer_ui, create_ming_image_prompt_enhancer_ui,create_flux3_prompt_upsampler_ui, create_moss_image_control_ui)default_vals = MODEL_DEFAULTS_CONFIG.get('Default', {})176 unmodified linescomponents.update(create_flux3_prompt_upsampler_ui(prefix))components.update(create_vae_override_ui(prefix))components.update(create_moss_image_control_ui(prefix))components.update(create_pid_ui(prefix))components[f'accordion_wrapper_{prefix}'] = accordion_wrapper9 unmodified lines1011121314151617176 unmodified lines1941951961971981992009 unmodified linescreate_sd3_ipadapter_ui, create_flux1_ipadapter_ui, create_style_ui,create_reference_latent_ui, create_hidream_o1_reference_ui, create_sensenova_reference_ui, create_joyai_reference_ui, create_reference_image_ui, create_krea2_identity_edit_ui, create_krea2_reference_edit_ui, create_qwen_image_edit_ui,create_pid_ui, create_qwen_image_2_1_prompt_enhancer_ui, create_ming_image_prompt_enhancer_ui,create_flux3_prompt_upsampler_ui, create_moss_image_control_ui,create_moss_image_edit_ui)default_vals = MODEL_DEFAULTS_CONFIG.get('Default', {})176 unmodified linescomponents.update(create_flux3_prompt_upsampler_ui(prefix))components.update(create_vae_override_ui(prefix))components.update(create_moss_image_control_ui(prefix))components.update(create_moss_image_edit_ui(prefix))components.update(create_pid_ui(prefix))components[f'accordion_wrapper_{prefix}'] = accordion_wrapper
1 unmodified line2345678903 unmodified lines9129139149151 unmodified linefrom comfy_integration.nodes import SAMPLER_CHOICES, SCHEDULER_CHOICESfrom core.settings import (MAX_LORAS, LORA_SOURCE_CHOICES, MAX_EMBEDDINGS, MAX_CONDITIONINGS,MAX_CONTROLNETS, MAX_IPADAPTERS, RESOLUTION_MAP, ARCHITECTURES_CONFIG,MODEL_MAP_CHECKPOINT, MODEL_TYPE_MAP, FEATURES_CONFIG, ARCH_CATEGORIES_MAP,VAE_DIR, MODEL_DEFAULTS_CONFIG)903 unmodified lines)return components1 unmodified line2345678903 unmodified lines9129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469471 unmodified linefrom comfy_integration.nodes import SAMPLER_CHOICES, SCHEDULER_CHOICESfrom core.settings import (MAX_LORAS, LORA_SOURCE_CHOICES, MAX_EMBEDDINGS, MAX_CONDITIONINGS,MAX_CONTROLNETS, MAX_IPADAPTERS, MAX_MOSS_IMAGE_EDITS, RESOLUTION_MAP, ARCHITECTURES_CONFIG,MODEL_MAP_CHECKPOINT, MODEL_TYPE_MAP, FEATURES_CONFIG, ARCH_CATEGORIES_MAP,VAE_DIR, MODEL_DEFAULTS_CONFIG)903 unmodified lines)return componentsdef create_moss_image_edit_ui(prefix: str, max_units=None):if max_units is None:max_units = MAX_MOSS_IMAGE_EDITScomponents = {}key = lambda name: f"{name}_{prefix}"with gr.Accordion("MOSS-Image Edit Settings", open=False, visible=('moss_image_edit' in default_enabled_chains)) as ref_accordion:components[key('moss_image_edit_accordion')] = ref_accordiongr.Markdown("💡 **Tip:** For multimodal models, this feature enables powerful editing and combining capabilities. In txt2img mode, adding a single reference image performs an Image Edit, while adding multiple images performs an Image Combine. Uses [chinoll/Moss-Image-Edit](https://huggingface.co/chinoll/Moss-Image-Edit).")ref_image_groups = []ref_image_inputs = []with gr.Row():for i in range(max_units):with gr.Column(visible=(i < 1), min_width=160) as img_col:img_comp = gr.Image(type="pil", label=f"Ref. {i+1}", sources=["upload"], height=150)ref_image_groups.append(img_col)ref_image_inputs.append(img_comp)components[key('moss_image_edit_rows')] = ref_image_groupscomponents[key('moss_image_edit_images')] = ref_image_inputswith gr.Row():components[key('add_moss_image_edit_button')] = gr.Button("✚ Add Reference Image")components[key('delete_moss_image_edit_button')] = gr.Button("➖ Delete Reference Image", visible=False)components[key('moss_image_edit_count_state')] = gr.State(1)components[key('all_moss_image_edit_components_flat')] = ref_image_inputsreturn components
556 unmodified lines557558559556 unmodified linesminimum: 0.0maximum: 1.0description: "Sampling percentage at which control ends (default 0.5, use 0.5 for 3D mannequin)."556 unmodified lines557558559560561562563564565566567568569570571572573574556 unmodified linesminimum: 0.0maximum: 1.0description: "Sampling percentage at which control ends (default 0.5, use 0.5 for 3D mannequin)."moss_image_edit:chains: moss_image_editdisplay_name: "MOSS-Image Edit"description: "Edits images or generates variants using MOSS-Image Edit LoRA (officially packaged by Comfy-Org as moss_image_edit_lora_rank_64_bf16.safetensors) and native TextEncodeMOSSImageEdit node."max_count: 10usage_guideline: "Upload 1-10 reference images and specify prompt. Automatically uses the official MOSS-Image Edit LoRA layout."parameters_schema:type: objectproperties:images:type: arrayitems:type: stringdescription: "List of 1 to 10 reference images encoded as Base64 Data URI, HTTP/HTTPS URL, or local file path."
3 unmodified lines4567893 unmodified linesMAX_EMBEDDINGS: 5MAX_CONDITIONINGS: 10MAX_REFERENCE_LATENTS: 10LORA_SOURCE_CHOICES: ["Civitai", "Hugging Face", "Upload File"]RESOLUTION_MAP:3 unmodified lines456789103 unmodified linesMAX_EMBEDDINGS: 5MAX_CONDITIONINGS: 10MAX_REFERENCE_LATENTS: 10MAX_MOSS_IMAGE_EDITS: 10LORA_SOURCE_CHOICES: ["Civitai", "Hugging Face", "Upload File"]RESOLUTION_MAP:
891 unmodified lines892893894895896897891 unmodified linessource: "hf"repo_id: "darask0/MOSS-Image-color-depth-control"repository_file_path: "moss-control.safetensors"# Krea2 Identity Edit- filename: "krea2_identity_edit_v1_2.safetensors"source: "hf"891 unmodified lines892893894895896897898899900901902891 unmodified linessource: "hf"repo_id: "darask0/MOSS-Image-color-depth-control"repository_file_path: "moss-control.safetensors"# MOSS-Image Edit- filename: "moss_image_edit_lora_rank_64_bf16.safetensors"source: "hf"repo_id: "Comfy-Org/MOSS-Image"repository_file_path: "loras/moss_image_edit_lora_rank_64_bf16.safetensors"# Krea2 Identity Edit- filename: "krea2_identity_edit_v1_2.safetensors"source: "hf"
86 unmodified lines87888990919286 unmodified linesenabled_chains:- lora- moss_image_control- pidming-image:86 unmodified lines8788899091929386 unmodified linesenabled_chains:- lora- moss_image_control- moss_image_edit- pidming-image:
25 unmodified lines26272829303120 unmodified lines52535455565719 unmodified lines77787980818219 unmodified lines10210310410510610719 unmodified lines12712812913025 unmodified lines- ming_image_prompt_enhancer- flux3_prompt_upsampler- moss_image_control- pid- vae20 unmodified lines- ming_image_prompt_enhancer- flux3_prompt_upsampler- moss_image_control- vaeinpaint:19 unmodified lines- ming_image_prompt_enhancer- flux3_prompt_upsampler- moss_image_control- vaeoutpaint:19 unmodified lines- ming_image_prompt_enhancer- flux3_prompt_upsampler- moss_image_control- vaehires_fix:19 unmodified lines- ming_image_prompt_enhancer- flux3_prompt_upsampler- moss_image_control- vae25 unmodified lines2627282930313220 unmodified lines5354555657585919 unmodified lines7980818283848519 unmodified lines10510610710810911011119 unmodified lines13113213313413525 unmodified lines- ming_image_prompt_enhancer- flux3_prompt_upsampler- moss_image_control- moss_image_edit- pid- vae20 unmodified lines- ming_image_prompt_enhancer- flux3_prompt_upsampler- moss_image_control- moss_image_edit- vaeinpaint:19 unmodified lines- ming_image_prompt_enhancer- flux3_prompt_upsampler- moss_image_control- moss_image_edit- vaeoutpaint:19 unmodified lines- ming_image_prompt_enhancer- flux3_prompt_upsampler- moss_image_control- moss_image_edit- vaehires_fix:19 unmodified lines- ming_image_prompt_enhancer- flux3_prompt_upsampler- moss_image_control- moss_image_edit- vae
README.md+1
chain_injectors/moss_image_edit_injector.pyAdded+228
core/pipelines/pipeline_input_processor.py+15
core/pipelines/sd_image_pipeline.py+2
core/pipelines/workflow_recipes/_partials/conditioning/moss-image.yaml+9
core/settings.py+2-1
mcp_tools/common.py+31
ui/events/chain_handlers.py+36-1
ui/events/change_handlers.py+4-2
ui/events/main.py+12-3
ui/events/run_handlers.py+4-1
ui/imagegen_ui.py+3-1
ui/shared/ui_components.py+33-1
yaml/chain_features.yaml+15
yaml/constants.yaml+1
yaml/file_list.yaml+5
yaml/model_architecture_features.yaml+1
yaml/task_features.yaml+5