Spaces:
Running on Zero
Running on Zero
Add Krea-2 Anythng Controlnet.
Browse filesFiles changed (13)
- README.md+1
- app.py+4-1
- core/pipelines/pipeline_input_processor.py+32-27
- core/settings.py+2-2
- ui/events/chain_handlers.py+7-7
- ui/layout.py+1-1
- ui/shared/ui_components.py+6-7
- utils/app_utils.py+38-34
- yaml/chain_features.yaml+13-12
- yaml/constants.yaml+1-1
- yaml/file_list.yaml+4
- yaml/krea2_controlnet_models.yaml+3
- yaml/model_defaults.yaml+196-4
115 unmodified lines116117118119120121115 unmodified lines- stabilityai/stable-diffusion-3.5-controlnets- stabilityai/stable-diffusion-xl-base-1.0- stable-diffusion-v1-5/stable-diffusion-v1-5- tsukiyomi/krea2_raw-nvfp4- Wenaka/NoobAI_XL_Inpainting_ControlNet_Full- xinsir/anime-painter115 unmodified lines116117118119120121122115 unmodified lines- stabilityai/stable-diffusion-3.5-controlnets- stabilityai/stable-diffusion-xl-base-1.0- stable-diffusion-v1-5/stable-diffusion-v1-5- tori29umai/krea2-controlnet- tsukiyomi/krea2_raw-nvfp4- Wenaka/NoobAI_XL_Inpainting_ControlNet_Full- xinsir/anime-painter
1 unmodified line23456786 unmodified lines94959697981 unmodified lineimport osimport sysimport siteif "--use-sage-attention" not in sys.argv:sys.argv.append("--use-sage-attention")86 unmodified linesdemo = create_app()if __name__ == "__main__":print("--- Launching Gradio Interface ---")demo.queue().launch(mcp_server=True, footer_links=["api", "gradio", "settings"])1 unmodified line234567891086 unmodified lines9798991001011 unmodified lineimport osimport sysimport siteimport gradio as grprint(f"📦 [Environment] Gradio Version: {gr.__version__}")if "--use-sage-attention" not in sys.argv:sys.argv.append("--use-sage-attention")86 unmodified linesdemo = create_app()if __name__ == "__main__":print(f"--- Launching Gradio Interface (v{gr.__version__}) ---")demo.queue().launch(mcp_server=True, footer_links=["api", "gradio", "settings"])
64 unmodified lines656667686970717273747576777872 unmodified lines151152153154155156157158159160161162163164165166167168169170171172173174252 unmodified lines42742842943043143243343443543643743843944044144264 unmodified linesfor i, (source, lora_id, scale, _) in enumerate(zip(sources, ids, scales, files)):if scale > 0 and lora_id and lora_id.strip():lora_filename = Noneif source == "File":lora_filename = sanitize_filename(lora_id)local_path = os.path.join(LORA_DIR, lora_filename)if not os.path.exists(local_path):raise gr.Error(f"Uploaded LoRA file '{lora_id}' no longer exists on server. Please re-upload it.")elif source in ("Civitai", "Hugging Face"):local_path, status = get_lora_path(source, lora_id, os.environ.get("CIVITAI_API_KEY", ""), progress)if local_path: lora_filename = os.path.basename(local_path)else: raise gr.Error(f"Failed to prepare LoRA {lora_id}: {status}")if lora_filename:72 unmodified linestemp_files_to_clean.append(temp_file_path)embedding_data = ui_inputs.get('embedding_data', [])embedding_filenames = []if 'embedding' in enabled_chains and embedding_data:emb_sources, emb_ids, emb_files = embedding_data[0::3], embedding_data[1::3], embedding_data[2::3]for i, (source, emb_id, _) in enumerate(zip(emb_sources, emb_ids, emb_files)):if emb_id and emb_id.strip():emb_filename = Noneif source == "File":emb_filename = sanitize_filename(emb_id)local_path = os.path.join(EMBEDDING_DIR, emb_filename)if not os.path.exists(local_path):raise gr.Error(f"Uploaded Embedding file '{emb_id}' no longer exists on server. Please re-upload it.")elif source in ("Civitai", "Hugging Face"):local_path, status = get_embedding_path(source, emb_id, os.environ.get("CIVITAI_API_KEY", ""), progress)if local_path: emb_filename = os.path.basename(local_path)else: raise gr.Error(f"Failed to prepare Embedding {emb_id}: {status}")if emb_filename:embedding_filenames.append(emb_filename)controlnet_data = ui_inputs.get('controlnet_data', [])active_controlnets = []252 unmodified linesvae_source = ui_inputs.get('vae_source')vae_id = ui_inputs.get('vae_id')vae_name_override = Noneif 'vae' in enabled_chains and vae_source and vae_source != "None":if vae_source == "File":vae_name_override = sanitize_filename(vae_id)local_path = os.path.join(VAE_DIR, vae_name_override)if not os.path.exists(local_path):raise gr.Error(f"Uploaded VAE file '{vae_id}' no longer exists on server. Please re-upload it.")elif vae_source in ("Civitai", "Hugging Face") and vae_id and vae_id.strip():local_path, status = get_vae_path(vae_source, vae_id, os.environ.get("CIVITAI_API_KEY", ""), progress)if local_path: vae_name_override = os.path.basename(local_path)else: raise gr.Error(f"Failed to prepare VAE {vae_id}: {status}")if vae_name_override:ui_inputs['vae_name'] = vae_name_override64 unmodified lines6566676869707172737475767778798081828372 unmodified lines156157158159160161162163164165166167168169170171172173252 unmodified lines42642742842943043143243343443543643743843944044144244344444544644764 unmodified linesfor i, (source, lora_id, scale, _) in enumerate(zip(sources, ids, scales, files)):if scale > 0 and lora_id and lora_id.strip():lora_filename = Noneif source in ("Upload File", "File"):raw_id = lora_id.strip().replace('\\', '/')rel_name = raw_id if raw_id.startswith("upload_file/") else f"upload_file/{raw_id}"local_path = os.path.join(LORA_DIR, rel_name)if not os.path.exists(local_path):if os.path.exists(os.path.join(LORA_DIR, raw_id)):local_path = os.path.join(LORA_DIR, raw_id)else:raise gr.Error(f"Uploaded LoRA file '{lora_id}' no longer exists on server. Please re-upload it.")lora_filename = os.path.relpath(local_path, LORA_DIR).replace('\\', '/')elif source in ("Civitai", "Hugging Face"):local_path, status = get_lora_path(source, lora_id, os.environ.get("CIVITAI_API_KEY", ""), progress)if local_path: lora_filename = os.path.relpath(local_path, LORA_DIR).replace('\\', '/')else: raise gr.Error(f"Failed to prepare LoRA {lora_id}: {status}")if lora_filename:72 unmodified linestemp_files_to_clean.append(temp_file_path)embedding_data = ui_inputs.get('embedding_data', [])if 'embedding' in enabled_chains and embedding_data:emb_sources, emb_ids, emb_files = embedding_data[0::3], embedding_data[1::3], embedding_data[2::3]for i, (source, emb_id, _) in enumerate(zip(emb_sources, emb_ids, emb_files)):if emb_id and emb_id.strip():if source in ("Civitai", "Hugging Face"):local_path, status = get_embedding_path(source, emb_id, os.environ.get("CIVITAI_API_KEY", ""), progress)if not local_path:raise gr.Error(f"Failed to prepare Embedding {emb_id}: {status}")elif source in ("Upload File", "File"):# Uploaded file is already stored in models/embeddings/upload_file/.# Embeddings are triggered directly via prompt (e.g. embedding:upload_file/<filename>).passcontrolnet_data = ui_inputs.get('controlnet_data', [])active_controlnets = []252 unmodified linesvae_source = ui_inputs.get('vae_source')vae_id = ui_inputs.get('vae_id')vae_name_override = Noneif 'vae' in enabled_chains and vae_source and vae_id and str(vae_id).strip():vae_id_clean = str(vae_id).strip()if vae_source in ("Upload File", "File"):raw_id = vae_id_clean.replace('\\', '/')rel_name = raw_id if raw_id.startswith("upload_file/") else f"upload_file/{raw_id}"local_path = os.path.join(VAE_DIR, rel_name)if not os.path.exists(local_path):if os.path.exists(os.path.join(VAE_DIR, raw_id)):local_path = os.path.join(VAE_DIR, raw_id)else:raise gr.Error(f"Uploaded VAE file '{vae_id_clean}' no longer exists on server. Please re-upload it.")vae_name_override = os.path.relpath(local_path, VAE_DIR).replace('\\', '/')elif vae_source in ("Civitai", "Hugging Face"):local_path, status = get_vae_path(vae_source, vae_id_clean, os.environ.get("CIVITAI_API_KEY", ""), progress)if local_path: vae_name_override = os.path.relpath(local_path, VAE_DIR).replace('\\', '/')else: raise gr.Error(f"Failed to prepare VAE {vae_id_clean}: {status}")if vae_name_override:ui_inputs['vae_name'] = vae_name_override
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)LORA_SOURCE_CHOICES = _constants.get('LORA_SOURCE_CHOICES', ["Civitai", "File"])RESOLUTION_MAP = _constants.get('RESOLUTION_MAP', {})MULTIPLIERS_MAP = _constants.get('MULTIPLIERS_MAP', {})ARCHITECTURES_CONFIG = load_architectures_config()3 unmodified linesexcept Exception as e:print(f"FATAL: Could not load constants from YAML. Error: {e}")MAX_LORAS, MAX_EMBEDDINGS, MAX_CONDITIONINGS, MAX_CONTROLNETS, MAX_IPADAPTERS = 5, 5, 10, 5, 5LORA_SOURCE_CHOICES = ["Civitai", "File"]RESOLUTION_MAP = {}MULTIPLIERS_MAP = {}ARCHITECTURES_CONFIG = {}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)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', {})ARCHITECTURES_CONFIG = load_architectures_config()3 unmodified linesexcept Exception as e:print(f"FATAL: Could not load constants from YAML. Error: {e}")MAX_LORAS, MAX_EMBEDDINGS, MAX_CONDITIONINGS, MAX_CONTROLNETS, MAX_IPADAPTERS = 5, 5, 10, 5, 5LORA_SOURCE_CHOICES = ["Civitai", "Hugging Face", "Upload File"]RESOLUTION_MAP = {}MULTIPLIERS_MAP = {}ARCHITECTURES_CONFIG = {}
12345613 unmodified lines202122232425262728293031323334353637383940414243import gradio as grfrom core.settings import VAE_DIR, LORA_DIR, EMBEDDING_DIR, ARCHITECTURES_CONFIGfrom utils.app_utils import save_uploaded_file_with_hashfrom ui.shared.ui_components import (MAX_CONTROLNETS,MAX_IPADAPTERS,13 unmodified linesif not file_obj:return gr.update(), gr.update(), Nonehashed_filename = save_uploaded_file_with_hash(file_obj, VAE_DIR)return hashed_filename, "File", file_objdef on_lora_upload(file_obj):if not file_obj:return gr.update(), gr.update()hashed_filename = save_uploaded_file_with_hash(file_obj, LORA_DIR)return hashed_filename, "File"def on_embedding_upload(file_obj):if not file_obj:return gr.update(), gr.update(), Nonehashed_filename = save_uploaded_file_with_hash(file_obj, EMBEDDING_DIR)return hashed_filename, "File", file_objdef create_lora_event_handlers(prefix, ui_components):12345613 unmodified lines202122232425262728293031323334353637383940414243import gradio as grfrom core.settings import VAE_DIR, LORA_DIR, EMBEDDING_DIR, ARCHITECTURES_CONFIGfrom utils.app_utils import save_uploaded_filefrom ui.shared.ui_components import (MAX_CONTROLNETS,MAX_IPADAPTERS,13 unmodified linesif not file_obj:return gr.update(), gr.update(), Noneuploaded_filename = save_uploaded_file(file_obj, VAE_DIR)return uploaded_filename, "Upload File", file_objdef on_lora_upload(file_obj):if not file_obj:return gr.update(), gr.update()uploaded_filename = save_uploaded_file(file_obj, LORA_DIR)return uploaded_filename, "Upload File"def on_embedding_upload(file_obj):if not file_obj:return gr.update(), gr.update(), Noneuploaded_filename = save_uploaded_file(file_obj, EMBEDDING_DIR)return uploaded_filename, "Upload File", file_objdef create_lora_event_handlers(prefix, ui_components):
11 unmodified lines1213141516171811 unmodified lineswith gr.Blocks() as demo:gr.Markdown("# ImageGen")gr.Markdown("This demo is a streamlined version of the [Comfy web UI](https://github.com/RioShiina47/comfy-webui)'s [ImageGen](https://huggingface.co/spaces/RioShiina/ImageGen) functionality. Support [High-Level MCP](https://rioshiina-imagegen.hf.space/gradio_api/mcp/) 🤖")ui_components.update(create_imagegen_ui())11 unmodified lines1213141516171811 unmodified lineswith gr.Blocks() as demo:gr.Markdown("# ImageGen")gr.Markdown("This demo is a streamlined version of the [Comfy web UI](https://github.com/RioShiina47/comfy-webui)'s [ImageGen](https://huggingface.co/spaces/RioShiina/ImageGen) functionality. Support [High-Level MCP](https://rioshiina-imagegen.hf.space/gradio_api/mcp/).")ui_components.update(create_imagegen_ui())
8 unmodified lines9101112131415503 unmodified lines51952052152252352452569 unmodified lines5955965975985996006016026036046056066071 unmodified line6096106116126136146156168 unmodified linesimport yamlimport osfrom functools import lru_cachefrom utils.app_utils import save_uploaded_file_with_hashdefault_model_name = list(MODEL_MAP_CHECKPOINT.keys())[0] if MODEL_MAP_CHECKPOINT else Nonedefault_m_type = MODEL_TYPE_MAP.get(default_model_name, "SDXL") if default_model_name else "SDXL"503 unmodified lineswith gr.Accordion("Embedding Settings", open=False, visible=('embedding' in default_enabled_chains)) as accordion:components[key('embedding_accordion')] = accordiongr.Markdown("💡 **Tip:** When downloading from Civitai, please use the **Version ID**, not the Model ID. You can find the Version ID in the URL (e.g., `civitai.com/models/123?modelVersionId=456`) or under the model's download button. For example, entering the Version ID 456 will automatically save the file as \"civitai_456.safetensors\", and you will need to manually enter `embedding:civitai_456` in either your prompt or negative prompt to activate it.When downloading from Hugging Face, please use the format: repo_id/filename.extension or repo_id/folder_path/filename.extension (e.g., ilikebigturtles/lazypos/lazypos.safetensors or ilikebigturtles/lazyneg/lazyneg.safetensors). For Hugging Face files, you will need to enter embedding:filename (e.g., entering embedding:lazypos in your positive prompt, or embedding:lazyneg in your negative prompt) to activate it.")embedding_rows, sources, ids, files, upload_buttons = [], [], [], [], []components.update({69 unmodified linesif not file_obj:return gr.update(), gr.update(), Nonehashed_filename = save_uploaded_file_with_hash(file_obj, VAE_DIR)return hashed_filename, "File", file_objdef create_vae_override_ui(prefix: str):components = {}key = lambda name: f"{name}_{prefix}"source_choices = ["None"] + LORA_SOURCE_CHOICESwith gr.Accordion("VAE Settings (Override)", open=False, visible=('vae' in default_enabled_chains)) as vae_accordion:components[key('vae_accordion')] = vae_accordion1 unmodified linewith gr.Row():components[key('vae_source')] = gr.Dropdown(label="VAE Source",choices=source_choices,value="None",scale=1,interactive=True)8 unmodified lines9101112131415503 unmodified lines51952052152252352452569 unmodified lines5955965975985996006016026036046056061 unmodified line6086096106116126136146158 unmodified linesimport yamlimport osfrom functools import lru_cachefrom utils.app_utils import save_uploaded_filedefault_model_name = list(MODEL_MAP_CHECKPOINT.keys())[0] if MODEL_MAP_CHECKPOINT else Nonedefault_m_type = MODEL_TYPE_MAP.get(default_model_name, "SDXL") if default_model_name else "SDXL"503 unmodified lineswith gr.Accordion("Embedding Settings", open=False, visible=('embedding' in default_enabled_chains)) as accordion:components[key('embedding_accordion')] = accordiongr.Markdown("💡 **Tip:** When downloading from Civitai, please use the **Version ID**, not the Model ID. You can find the Version ID in the URL (e.g., `civitai.com/models/123?modelVersionId=456`) or under the model's download button. For example, entering the Version ID 456 will automatically save the file as \"civitai/456.safetensors\", and you will need to manually enter `embedding:civitai/456` in either your prompt or negative prompt to activate it. When downloading from Hugging Face, please use the format: repo_id/filename.extension or repo_id/folder_path/filename.extension (e.g., ilikebigturtles/lazypos/lazypos.safetensors or ilikebigturtles/lazyneg/lazyneg.safetensors). For Hugging Face files, you will need to enter embedding:huggingface/filename (e.g., entering embedding:huggingface/lazypos in your positive prompt, or embedding:huggingface/lazyneg in your negative prompt) to activate it. For uploaded files, enter `embedding:upload_file/filename` in either your positive prompt or negative prompt to activate it.")embedding_rows, sources, ids, files, upload_buttons = [], [], [], [], []components.update({69 unmodified linesif not file_obj:return gr.update(), gr.update(), Noneuploaded_filename = save_uploaded_file(file_obj, VAE_DIR)return uploaded_filename, "Upload File", file_objdef create_vae_override_ui(prefix: str):components = {}key = lambda name: f"{name}_{prefix}"with gr.Accordion("VAE Settings (Override)", open=False, visible=('vae' in default_enabled_chains)) as vae_accordion:components[key('vae_accordion')] = vae_accordion1 unmodified linewith gr.Row():components[key('vae_source')] = gr.Dropdown(label="VAE Source",choices=LORA_SOURCE_CHOICES,value="Civitai",scale=1,interactive=True)
42 unmodified lines43444546474849505152535455565758596061626364656667686970717273122 unmodified lines1961971981992002012022032 unmodified lines20620720820921021121221321411 unmodified lines22622722822923023123223323423523623723820 unmodified lines2592602612622632642652663 unmodified lines27027127227327427527611 unmodified lines28828929029129229329429529629729829930020 unmodified lines3213223233243253263273282 unmodified lines33133233333433533633733833911 unmodified lines35135235335435535635735835936036136236342 unmodified linesUniqueKeyLoader.add_constructor(yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG, UniqueKeyLoader.construct_mapping)def save_uploaded_file_with_hash(file_obj: gr.File, target_dir: str) -> str:if not file_obj:return ""temp_path = file_obj.namesha256 = hashlib.sha256()with open(temp_path, 'rb') as f:for block in iter(lambda: f.read(65536), b''):sha256.update(block)file_hash = sha256.hexdigest()_, extension = os.path.splitext(temp_path)hashed_filename = f"{file_hash}{extension.lower()}"dest_path = os.path.join(target_dir, hashed_filename)os.makedirs(target_dir, exist_ok=True)if not os.path.exists(dest_path):shutil.copy(temp_path, dest_path)print(f"✅ Saved uploaded file as: {dest_path}")else:print(f"ℹ️ File already exists (deduplicated): {dest_path}")return hashed_filenamedef bytes_to_gb(byte_size: int) -> float:if byte_size is None or byte_size == 0:122 unmodified linesif model_type and model_type.lower() == 'checkpoint':return None, f"Invalid Civitai model type '{model_type}' for LoRA. Checkpoint models are not allowed."filename = sanitize_filename(f"civitai_{version_id}.safetensors")local_path = os.path.join(LORA_DIR, filename)api_key_to_use = civitai_keysource_name = f"Civitai ID {version_id}"elif source == "Hugging Face":2 unmodified linesreturn None, "Invalid Hugging Face path. Format: repo_owner/repo_name/filename"repo_id = f"{parts[0]}/{parts[1]}"repo_file_path = "/".join(parts[2:])unique_name = id_or_url.strip().replace('/', '_')filename = sanitize_filename(unique_name)local_path = os.path.join(LORA_DIR, filename)source_name = f"HF {repo_file_path}"else:return None, "Invalid source."11 unmodified linesif not file_info or not file_info.get('downloadUrl'):return None, f"Could not get download link for {source_name}."status = download_file(file_info['downloadUrl'], local_path, api_key_to_use, progress=progress, desc=f"Downloading {source_name}")return (local_path, status) if "Successfully" in status else (None, status)elif source == "Hugging Face":try:if progress: progress(0, desc=f"Downloading {source_name}")cached_path = hf_hub_download(repo_id=repo_id, filename=repo_file_path, token=os.environ.get("HF_TOKEN"))os.makedirs(LORA_DIR, exist_ok=True)os.symlink(cached_path, local_path)if progress: progress(1.0, desc=f"Downloaded {source_name}")return local_path, f"Successfully downloaded: {filename}"20 unmodified linesif file_info and file_info.get('name') and file_info['name'].lower().endswith(('.pt', '.bin')):file_ext = os.path.splitext(file_info['name'])[1]filename = sanitize_filename(f"civitai_{version_id}{file_ext}")local_path = os.path.join(EMBEDDING_DIR, filename)api_key_to_use = civitai_keysource_name = f"Embedding Civitai ID {version_id}"elif source == "Hugging Face":3 unmodified linesrepo_id = f"{parts[0]}/{parts[1]}"repo_file_path = "/".join(parts[2:])filename = sanitize_filename(parts[-1])local_path = os.path.join(EMBEDDING_DIR, filename)source_name = f"Embedding HF {repo_file_path}"else:return None, "Invalid source."11 unmodified linesif not file_info or not file_info.get('downloadUrl'):return None, f"Could not get download link for {source_name}."status = download_file(file_info['downloadUrl'], local_path, api_key_to_use, progress=progress, desc=f"Downloading {source_name}")return (local_path, status) if "Successfully" in status else (None, status)elif source == "Hugging Face":try:if progress: progress(0, desc=f"Downloading {source_name}")cached_path = hf_hub_download(repo_id=repo_id, filename=repo_file_path, token=os.environ.get("HF_TOKEN"))os.makedirs(EMBEDDING_DIR, exist_ok=True)os.symlink(cached_path, local_path)if progress: progress(1.0, desc=f"Downloaded {source_name}")return local_path, f"Successfully downloaded: {filename}"20 unmodified linesif file_info and file_info.get('name') and file_info['name'].lower().endswith(('.pt', '.bin')):file_ext = os.path.splitext(file_info['name'])[1]filename = sanitize_filename(f"civitai_{version_id}{file_ext}")local_path = os.path.join(VAE_DIR, filename)api_key_to_use = civitai_keysource_name = f"VAE Civitai ID {version_id}"elif source == "Hugging Face":2 unmodified linesreturn None, "Invalid Hugging Face path. Format: repo_owner/repo_name/filename"repo_id = f"{parts[0]}/{parts[1]}"repo_file_path = "/".join(parts[2:])unique_name = id_or_url.strip().replace('/', '_')filename = sanitize_filename(unique_name)local_path = os.path.join(VAE_DIR, filename)source_name = f"VAE HF {repo_file_path}"else:return None, "Invalid source."11 unmodified linesif not file_info or not file_info.get('downloadUrl'):return None, f"Could not get download link for {source_name}."status = download_file(file_info['downloadUrl'], local_path, api_key_to_use, progress=progress, desc=f"Downloading {source_name}")return (local_path, status) if "Successfully" in status else (None, status)elif source == "Hugging Face":try:if progress: progress(0, desc=f"Downloading {source_name}")cached_path = hf_hub_download(repo_id=repo_id, filename=repo_file_path, token=os.environ.get("HF_TOKEN"))os.makedirs(VAE_DIR, exist_ok=True)os.symlink(cached_path, local_path)if progress: progress(1.0, desc=f"Downloaded {source_name}")return local_path, f"Successfully downloaded: {filename}"42 unmodified lines434445464748495051525354555657585960616263646566122 unmodified lines1891901911921931941951961971981992002012 unmodified lines20420520620720820921021121211 unmodified lines22422522622722822923023123223323423523623720 unmodified lines2582592602612622632642652663 unmodified lines27027127227327427527627711 unmodified lines28929029129229329429529629729829930030130220 unmodified lines3233243253263273283293303312 unmodified lines33433533633733833934034134211 unmodified lines35435535635735835936036136236336436536636742 unmodified linesUniqueKeyLoader.add_constructor(yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG, UniqueKeyLoader.construct_mapping)def save_uploaded_file(file_obj: gr.File, target_dir: str) -> str:if not file_obj:return ""temp_path = file_obj.nameorig_filename = getattr(file_obj, 'orig_name', None) or os.path.basename(temp_path)clean_filename = sanitize_filename(orig_filename)upload_dir = os.path.join(target_dir, "upload_file")dest_path = os.path.join(upload_dir, clean_filename)os.makedirs(upload_dir, exist_ok=True)shutil.copy(temp_path, dest_path)print(f"✅ Saved uploaded file as: {dest_path}")return clean_filenamesave_uploaded_file_with_hash = save_uploaded_filedef bytes_to_gb(byte_size: int) -> float:if byte_size is None or byte_size == 0:122 unmodified linesif model_type and model_type.lower() == 'checkpoint':return None, f"Invalid Civitai model type '{model_type}' for LoRA. Checkpoint models are not allowed."file_ext = ".safetensors"if file_info and file_info.get('name') and file_info['name'].lower().endswith(('.pt', '.bin')):file_ext = os.path.splitext(file_info['name'])[1]filename = sanitize_filename(f"{version_id}{file_ext}")save_dir = os.path.join(LORA_DIR, "civitai")local_path = os.path.join(save_dir, filename)api_key_to_use = civitai_keysource_name = f"Civitai ID {version_id}"elif source == "Hugging Face":2 unmodified linesreturn None, "Invalid Hugging Face path. Format: repo_owner/repo_name/filename"repo_id = f"{parts[0]}/{parts[1]}"repo_file_path = "/".join(parts[2:])filename = sanitize_filename(parts[-1])save_dir = os.path.join(LORA_DIR, "huggingface")local_path = os.path.join(save_dir, filename)source_name = f"HF {repo_file_path}"else:return None, "Invalid source."11 unmodified linesif not file_info or not file_info.get('downloadUrl'):return None, f"Could not get download link for {source_name}."os.makedirs(os.path.dirname(local_path), exist_ok=True)status = download_file(file_info['downloadUrl'], local_path, api_key_to_use, progress=progress, desc=f"Downloading {source_name}")return (local_path, status) if "Successfully" in status else (None, status)elif source == "Hugging Face":try:if progress: progress(0, desc=f"Downloading {source_name}")cached_path = hf_hub_download(repo_id=repo_id, filename=repo_file_path, token=os.environ.get("HF_TOKEN"))os.makedirs(os.path.dirname(local_path), exist_ok=True)os.symlink(cached_path, local_path)if progress: progress(1.0, desc=f"Downloaded {source_name}")return local_path, f"Successfully downloaded: {filename}"20 unmodified linesif file_info and file_info.get('name') and file_info['name'].lower().endswith(('.pt', '.bin')):file_ext = os.path.splitext(file_info['name'])[1]filename = sanitize_filename(f"{version_id}{file_ext}")save_dir = os.path.join(EMBEDDING_DIR, "civitai")local_path = os.path.join(save_dir, filename)api_key_to_use = civitai_keysource_name = f"Embedding Civitai ID {version_id}"elif source == "Hugging Face":3 unmodified linesrepo_id = f"{parts[0]}/{parts[1]}"repo_file_path = "/".join(parts[2:])filename = sanitize_filename(parts[-1])save_dir = os.path.join(EMBEDDING_DIR, "huggingface")local_path = os.path.join(save_dir, filename)source_name = f"Embedding HF {repo_file_path}"else:return None, "Invalid source."11 unmodified linesif not file_info or not file_info.get('downloadUrl'):return None, f"Could not get download link for {source_name}."os.makedirs(os.path.dirname(local_path), exist_ok=True)status = download_file(file_info['downloadUrl'], local_path, api_key_to_use, progress=progress, desc=f"Downloading {source_name}")return (local_path, status) if "Successfully" in status else (None, status)elif source == "Hugging Face":try:if progress: progress(0, desc=f"Downloading {source_name}")cached_path = hf_hub_download(repo_id=repo_id, filename=repo_file_path, token=os.environ.get("HF_TOKEN"))os.makedirs(os.path.dirname(local_path), exist_ok=True)os.symlink(cached_path, local_path)if progress: progress(1.0, desc=f"Downloaded {source_name}")return local_path, f"Successfully downloaded: {filename}"20 unmodified linesif file_info and file_info.get('name') and file_info['name'].lower().endswith(('.pt', '.bin')):file_ext = os.path.splitext(file_info['name'])[1]filename = sanitize_filename(f"{version_id}{file_ext}")save_dir = os.path.join(VAE_DIR, "civitai")local_path = os.path.join(save_dir, filename)api_key_to_use = civitai_keysource_name = f"VAE Civitai ID {version_id}"elif source == "Hugging Face":2 unmodified linesreturn None, "Invalid Hugging Face path. Format: repo_owner/repo_name/filename"repo_id = f"{parts[0]}/{parts[1]}"repo_file_path = "/".join(parts[2:])filename = sanitize_filename(parts[-1])save_dir = os.path.join(VAE_DIR, "huggingface")local_path = os.path.join(save_dir, filename)source_name = f"VAE HF {repo_file_path}"else:return None, "Invalid source."11 unmodified linesif not file_info or not file_info.get('downloadUrl'):return None, f"Could not get download link for {source_name}."os.makedirs(os.path.dirname(local_path), exist_ok=True)status = download_file(file_info['downloadUrl'], local_path, api_key_to_use, progress=progress, desc=f"Downloading {source_name}")return (local_path, status) if "Successfully" in status else (None, status)elif source == "Hugging Face":try:if progress: progress(0, desc=f"Downloading {source_name}")cached_path = hf_hub_download(repo_id=repo_id, filename=repo_file_path, token=os.environ.get("HF_TOKEN"))os.makedirs(os.path.dirname(local_path), exist_ok=True)os.symlink(cached_path, local_path)if progress: progress(1.0, desc=f"Downloaded {source_name}")return local_path, f"Successfully downloaded: {filename}"
5 unmodified lines678910111213141516171819202122131 unmodified lines154155156157158159160161162163164165166167168169170333 unmodified lines5045055065075085095105115122 unmodified lines5155165175185195205215225235245 unmodified linesdisplay_name: "LoRA Fine-tuning Injector"description: "Injects LoRA weights into UNet/DiT model and CLIP text encoder for custom style, character, or domain adaptation. Note: For Civitai, specify the Version ID (modelVersionId) instead of the main Model ID."max_count: 5usage_guideline: "Specify source ('Civitai' or 'Hugging Face'). For Civitai, provide lora_value as the Version ID (modelVersionId). For Hugging Face, provide HF repo file path. Scale (0.0~2.0) controls weight strength."parameters_schema:type: objectproperties:source:type: stringenum: ["Civitai", "Hugging Face"]description: "Download source for the LoRA model. Use 'Civitai' to download by Version ID (modelVersionId), or 'Hugging Face' to download by repo file path."lora_value:type: stringdescription: "For Civitai: the Version ID (modelVersionId). For Hugging Face: repo_id/filename.extension or repo_id/folder_path/filename.extension."scale:type: numberdefault: 1.0131 unmodified linesdisplay_name: "Custom VAE Loader"description: "Overrides default VAE model used for latent space encoding and final image decoding."max_count: 1usage_guideline: "Specify source ('Civitai' or 'Hugging Face'), then provide the vae_value (Civitai Version ID or HF file path)."parameters_schema:type: objectproperties:source:type: stringenum: ["Civitai", "Hugging Face"]description: "Download source for the VAE model. Use 'Civitai' to download by Version ID, or 'Hugging Face' to download by repo path."vae_value:type: stringdescription: "For Civitai: the Version ID (e.g., '456' from civitai.com/models/123?modelVersionId=456). For Hugging Face: repo_id/filename.extension or repo_id/folder_path/filename.extension (e.g., 'madebyollin/sdxl-vae-fp16-fix/sdxl_vae.safetensors')."required:- source- vae_value333 unmodified linesembedding:chains: embeddingdisplay_name: "Textual Inversion Embedding Injector"description: "Downloads Textual Inversion embedding files from Civitai or Hugging Face to the server. Note: This feature ONLY handles file downloading/preparation. To activate the embedding, manually add 'embedding:<filename>' (e.g. 'embedding:civitai_456' for Civitai ID 456, or 'embedding:filename' for Hugging Face) into your prompt or negative_prompt."max_count: 5usage_guideline: "Specify source ('Civitai' or 'Hugging Face'), and embedding_value (Civitai Version ID or HF repo file path). The file is downloaded to server; manually enter 'embedding:<filename>' in prompt or negative_prompt to activate."parameters_schema:type: objectproperties:2 unmodified linesenum:- "Civitai"- "Hugging Face"description: "Download source for the Textual Inversion embedding file. Use 'Civitai' to download by Version ID, or 'Hugging Face' to download by repo file path."embedding_value:type: stringdescription: "For Civitai: the Version ID (e.g., '456' from civitai.com/models/123?modelVersionId=456, saved as 'civitai_456.safetensors'). For Hugging Face: repo_id/filename.extension (e.g., 'ilikebigturtles/lazypos/lazypos.safetensors', saved as 'lazypos.safetensors'). Manually reference embedding:<filename> in prompt or negative_prompt."required:- source- embedding_value5 unmodified lines678910111213141516171819202122131 unmodified lines154155156157158159160161162163164165166167168169170333 unmodified lines5045055065075085095105115122 unmodified lines5155165175185195205215225235245255 unmodified linesdisplay_name: "LoRA Fine-tuning Injector"description: "Injects LoRA weights into UNet/DiT model and CLIP text encoder for custom style, character, or domain adaptation. Note: For Civitai, specify the Version ID (modelVersionId) instead of the main Model ID."max_count: 5usage_guideline: "Specify source ('Civitai', 'Hugging Face', or 'Upload File'). For Civitai, provide lora_value as the Version ID (modelVersionId). For Hugging Face, provide HF repo file path. For Upload File, provide uploaded filename. Scale (0.0~2.0) controls weight strength."parameters_schema:type: objectproperties:source:type: stringenum: ["Civitai", "Hugging Face", "Upload File"]description: "Download/upload source for the LoRA model. Use 'Civitai' to download by Version ID (modelVersionId), 'Hugging Face' to download by repo file path, or 'Upload File' for uploaded files."lora_value:type: stringdescription: "For Civitai: the Version ID (modelVersionId). For Hugging Face: repo_id/filename.extension or repo_id/folder_path/filename.extension. For Upload File: uploaded filename."scale:type: numberdefault: 1.0131 unmodified linesdisplay_name: "Custom VAE Loader"description: "Overrides default VAE model used for latent space encoding and final image decoding."max_count: 1usage_guideline: "Specify source ('Civitai', 'Hugging Face', or 'Upload File'), then provide the vae_value (Civitai Version ID, HF file path, or uploaded filename)."parameters_schema:type: objectproperties:source:type: stringenum: ["Civitai", "Hugging Face", "Upload File"]description: "Download/upload source for the VAE model. Use 'Civitai' to download by Version ID, 'Hugging Face' to download by repo path, or 'Upload File' for uploaded file."vae_value:type: stringdescription: "For Civitai: the Version ID (e.g., '456' from civitai.com/models/123?modelVersionId=456). For Hugging Face: repo_id/filename.extension or repo_id/folder_path/filename.extension (e.g., 'madebyollin/sdxl-vae-fp16-fix/sdxl_vae.safetensors'). For Upload File: uploaded file name."required:- source- vae_value333 unmodified linesembedding:chains: embeddingdisplay_name: "Textual Inversion Embedding Injector"description: "Downloads Textual Inversion embedding files from Civitai, Hugging Face, or uploads to the server. Note: This feature ONLY handles file downloading/preparation. To activate the embedding, manually add 'embedding:<filename>' (e.g. 'embedding:civitai/456' for Civitai ID 456, 'embedding:huggingface/lazypos' for Hugging Face, or 'embedding:upload_file/filename' for uploaded files) into your prompt or negative_prompt."max_count: 5usage_guideline: "Specify source ('Civitai', 'Hugging Face', or 'Upload File'), and embedding_value (Civitai Version ID, HF repo file path, or uploaded filename). The file is stored on server; manually enter 'embedding:<filename>' in prompt or negative_prompt to activate."parameters_schema:type: objectproperties:2 unmodified linesenum:- "Civitai"- "Hugging Face"- "Upload File"description: "Download source for the Textual Inversion embedding file. Use 'Civitai' to download by Version ID, 'Hugging Face' to download by repo file path, or 'Upload File' for uploaded files."embedding_value:type: stringdescription: "For Civitai: the Version ID (e.g., '456' from civitai.com/models/123?modelVersionId=456, saved as 'civitai/456.safetensors'). For Hugging Face: repo_id/filename.extension (e.g., 'ilikebigturtles/lazypos/lazypos.safetensors', saved as 'huggingface/lazypos.safetensors'). For Upload File: uploaded filename (saved as 'upload_file/filename.safetensors'). Manually reference embedding:<filename> in prompt or negative_prompt."required:- source- embedding_value
3 unmodified lines456789103 unmodified linesMAX_EMBEDDINGS: 5MAX_CONDITIONINGS: 10MAX_REFERENCE_LATENTS: 10LORA_SOURCE_CHOICES: ["Civitai", "Hugging Face", "File"]RESOLUTION_MAP:krea-2:3 unmodified lines456789103 unmodified linesMAX_EMBEDDINGS: 5MAX_CONDITIONINGS: 10MAX_REFERENCE_LATENTS: 10LORA_SOURCE_CHOICES: ["Civitai", "Hugging Face", "Upload File"]RESOLUTION_MAP:krea-2:
796 unmodified lines797798799800801802796 unmodified linesrepo_id: "ostris/krea2_turbo_style_reference"repository_file_path: "krea2_style_reference.safetensors"# Krea2 ControlNet- filename: "depth-control-lora.safetensors"source: "hf"repo_id: "Patil/Krea-2-depth-controlnet"796 unmodified lines797798799800801802803804805806796 unmodified linesrepo_id: "ostris/krea2_turbo_style_reference"repository_file_path: "krea2_style_reference.safetensors"# Krea2 ControlNet- filename: "krea2-anythng_step_007000.safetensors"source: "hf"repo_id: "tori29umai/krea2-controlnet"repository_file_path: "krea2-anythng_step_007000.safetensors"- filename: "depth-control-lora.safetensors"source: "hf"repo_id: "Patil/Krea-2-depth-controlnet"
1234Krea2_ControlNet:- Filepath: "depth-control-lora.safetensors"Series: "Patil"Type: ["Depth"]1234567Krea2_ControlNet:- Filepath: "krea2-anythng_step_007000.safetensors"Series: "tori29umai"Type: ["Anythng"]- Filepath: "depth-control-lora.safetensors"Series: "Patil"Type: ["Depth"]
157 unmodified lines158159160161162163164165166167168169170133 unmodified lines304305306307308309310311312157 unmodified linescfg: 4.0sampler_name: "er_sde"scheduler: "simple"positive_prompt: "masterpiece, best quality, score_7, safe, "negative_prompt: "worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, sepia""Gazingstars123/Anima-2.9B-preview-v1":steps: 30cfg: 4.0scheduler: "simple"scheduler: "sgm_uniform"NewBie-Image:_defaults:133 unmodified linescfg: 1.0positive_prompt: "NOTE: The model generates images of size 512x512 but higher image sizes work as well."SD1.5:_defaults:steps: 47cfg: 7.0sampler_name: "euler_ancestral"scheduler: "simple"157 unmodified lines158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198133 unmodified lines332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504157 unmodified linescfg: 4.0sampler_name: "er_sde"scheduler: "simple"positive_prompt: "masterpiece, best quality, score_7, safe, "negative_prompt: "worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, sepia""circlestone-labs/Anima-Turbo-v1.0":steps: 10cfg: 1.0sampler_name: "er_sde"scheduler: "simple""WAI0731/waiANIMA-v1.0":steps: 28cfg: 4.0sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: "masterpiece, best quality, score_9, score_8, score_7, safe, "negative_prompt: "worst quality, low quality, score_1, score_2, score_3, artist name, blurry, jpeg artifacts, lowres, censor""Gazingstars123/Anima-2.9B-preview-v1":steps: 30cfg: 4.0sampler_name: "er_sde"scheduler: "sgm_uniform"positive_prompt: "masterpiece, best quality, highres, absurdres, newest, score_7, safe, "negative_prompt: "lowres, bad quality, worst quality, score_1, score_2, score_3, jpeg artifacts, signature, watermark""motimalu/Kirazuri (Anima)-v4.0":steps: 30cfg: 4.0sampler_name: "er_sde"scheduler: "simple"positive_prompt: "masterpiece, best quality, very aesthetic, score_7, safe, "negative_prompt: "worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, sepia""Ikena/Hassaku-Anima-v1.3":steps: 25cfg: 3.5sampler_name: "er_sde"scheduler: "simple"positive_prompt: "masterpiece, best quality, score_7, safe, "negative_prompt: "worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts"NewBie-Image:_defaults:133 unmodified linescfg: 1.0positive_prompt: "NOTE: The model generates images of size 512x512 but higher image sizes work as well."# --- NoobAI ---"Laxhar/noobai-XL-Vpred-1.0":steps: 28cfg: 5.0sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, newest, absurdres, highres, safe, "negative_prompt: "nsfw, worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""Laxhar/noobai-XL-1.1":steps: 28cfg: 5.0sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, newest, absurdres, highres, safe, "negative_prompt: "nsfw, worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""bluepen5805/noob_v_pencil-XL-3.0.0":steps: 28cfg: 5.0sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, newest, absurdres, highres, safe, "negative_prompt: "nsfw, worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""RedRayz/hikari_noob_v-pred_1.2.4":steps: 28cfg: 5.0sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, newest, absurdres, highres, safe, "negative_prompt: "nsfw, worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""ChenkinNoob/ChenkinNoob-XL-V0.5":steps: 28cfg: 5.0sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, newest, absurdres, highres, safe, "negative_prompt: "nsfw, worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro"# --- Illustrious ---"WAI0731/wai-illustrious-sdxl-v170":steps: 28cfg: 5.5sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, aesthetic, absurdres, newest, "negative_prompt: "worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""OnomaAIResearch/Illustrious-XL-v2.0":steps: 28cfg: 5.5sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, aesthetic, absurdres, newest, "negative_prompt: "worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""OnomaAIResearch/Illustrious-XL-v1.1":steps: 28cfg: 5.5sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, aesthetic, absurdres, newest, "negative_prompt: "worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""OnomaAIResearch/Illustrious-XL-v1.0":steps: 28cfg: 5.5sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, aesthetic, absurdres, newest, "negative_prompt: "worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""aria1th261/Illustrious-XL-v0.1":steps: 28cfg: 5.5sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, aesthetic, absurdres, newest, "negative_prompt: "worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""Crody/Nova-Anime-XL-v18.0":steps: 28cfg: 5.5sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, aesthetic, absurdres, newest, "negative_prompt: "worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""Ikena/hassaku-xl-illustrious-v3.0":steps: 28cfg: 5.5sampler_name: "euler"scheduler: "simple"positive_prompt: "masterpiece, best quality, aesthetic, absurdres, newest, "negative_prompt: "worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""blue_pen5805/illustrious_pencil-XL-v5.0.0":steps: 25cfg: 5.0sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: "masterpiece, best quality, aesthetic, absurdres, newest, "negative_prompt: "worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro""blue_pen5805/mellow_pencil-XL-v1.0.0":steps: 18cfg: 3.0sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: "masterpiece, best quality, aesthetic, absurdres, newest, "negative_prompt: "worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands"# --- Animagine / Anime ---"CagliostroLab/Animagine XL 4.0":steps: 28cfg: 6.0sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: "masterpiece, best quality, very aesthetic, absurdres, "negative_prompt: "lowres, (bad), text, error, fewer, extra, missing, worst quality, jpeg artifacts, low quality, watermark, unfinished, displeasing, oldest, early, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract]""CagliostroLab/Animagine XL 3.1":steps: 28cfg: 6.0sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: "masterpiece, best quality, very aesthetic, absurdres, "negative_prompt: "lowres, (bad), text, error, fewer, extra, missing, worst quality, jpeg artifacts, low quality, watermark, unfinished, displeasing, oldest, early, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract]""blue_pen5805/4nima_pencil-XL v1.0.1":steps: 28cfg: 6.0sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: "masterpiece, best quality, very aesthetic, absurdres, "negative_prompt: "lowres, (bad), text, error, fewer, extra, missing, worst quality, jpeg artifacts, low quality, watermark, unfinished, displeasing, oldest, early, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract]""blue_pen5805/anima_pencil-XL v5.0.0":steps: 28cfg: 6.0sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: "masterpiece, best quality, very aesthetic, absurdres, "negative_prompt: "lowres, (bad), text, error, fewer, extra, missing, worst quality, jpeg artifacts, low quality, watermark, unfinished, displeasing, oldest, early, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract]""blue_pen5805/blue_pencil-XL v7.0.0":steps: 28cfg: 6.0sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: "masterpiece, best quality, very aesthetic, absurdres, "negative_prompt: "lowres, (bad), text, error, fewer, extra, missing, worst quality, jpeg artifacts, low quality, watermark, unfinished, displeasing, oldest, early, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract]"# --- Pony ---"PurpleSmartAI/Pony Diffusion V6 XL":steps: 28cfg: 5.5sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: "score_9, score_8_up, score_7_up, score_6_up, score_5_up, score_4_up, rating_safe, "negative_prompt: "score_6, score_5, score_4, (worst quality:1.2), (low quality:1.2), lowres, bad anatomy, bad hands, signature, watermarks, ugly, imperfect eyes, unnatural body, extra limbs""blue_pen5805/pony_pencil-XL v2.0.0":steps: 28cfg: 5.5sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: "score_9, score_8_up, score_7_up, score_6_up, score_5_up, score_4_up, rating_safe, "negative_prompt: "score_6, score_5, score_4, (worst quality:1.2), (low quality:1.2), lowres, bad anatomy, bad hands, signature, watermarks, ugly, imperfect eyes, unnatural body, extra limbs""Cyberdelia/CyberRealistic Pony v17.0":steps: 30cfg: 5.0sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: "score_9, score_8_up, score_7_up, rating_safe, "negative_prompt: "score_6, score_5, score_4, (worst quality:1.2), (low quality:1.2), (normal quality:1.2), lowres, bad anatomy, bad hands, signature, watermarks, ugly, imperfect eyes, skewed eyes, unnatural face, unnatural body, extra limbs"SD1.5:_defaults:steps: 35cfg: 7.0sampler_name: "euler_ancestral"scheduler: "simple"positive_prompt: ""negative_prompt: "worst quality, low quality, normal quality, lowres, bad anatomy, bad hands, missing fingers, extra digit, cropped, blurry, watermark, signature"
README.md+1
app.py+4-1
core/pipelines/pipeline_input_processor.py+32-27
core/settings.py+2-2
ui/events/chain_handlers.py+7-7
ui/layout.py+1-1
ui/shared/ui_components.py+6-7
utils/app_utils.py+38-34
yaml/chain_features.yaml+13-12
yaml/constants.yaml+1-1
yaml/file_list.yaml+4
yaml/krea2_controlnet_models.yaml+3
yaml/model_defaults.yaml+196-4