From dd262b6ff5f9b5e238511dafda3e8956ab071288 Mon Sep 17 00:00:00 2001 From: Cyber Dick Lang <286878701@qq.com> Date: Fri, 18 Jul 2025 16:31:45 +0800 Subject: [PATCH] =?UTF-8?q?v1.2.5:=20=E4=BC=98=E5=8C=96Kontext=E9=A2=84?= =?UTF-8?q?=E8=AE=BE=E7=B3=BB=E7=BB=9F=EF=BC=8C=E6=8F=90=E5=8D=87=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BD=93=E9=AA=8C=20-=20=E4=B8=BA=E6=89=80=E6=9C=89?= =?UTF-8?q?=E9=A2=84=E8=AE=BE=E6=B7=BB=E5=8A=A0=E8=8B=B1=E6=96=87=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=89=8D=E7=BC=80=EF=BC=8C=E6=8F=90=E5=8D=87=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E4=B8=AD=E7=9A=84=E5=8F=AF=E8=AF=BB=E6=80=A7=20-=20?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=BB=84=E7=BB=87=E9=A2=84=E8=AE=BE=E5=88=86?= =?UTF-8?q?=E7=B1=BB=EF=BC=9ACore-=E6=A0=B8=E5=BF=83=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E3=80=81Composite-=E5=9B=BE=E5=83=8F=E5=90=88=E6=88=90?= =?UTF-8?q?=E3=80=81Scene-=E5=9C=BA=E6=99=AF=E7=8E=AF=E5=A2=83=E3=80=81Pho?= =?UTF-8?q?to-=E6=91=84=E5=BD=B1=E6=8A=80=E6=9C=AF=E3=80=81Character-?= =?UTF-8?q?=E4=BA=BA=E7=89=A9=E5=8F=98=E6=8D=A2=E3=80=81Art-=E8=89=BA?= =?UTF-8?q?=E6=9C=AF=E9=A3=8E=E6=A0=BC=E3=80=81Effect-=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E6=95=88=E6=9E=9C=E3=80=81Utility-=E5=AE=9E=E7=94=A8=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=20-=20=E5=B0=86=E8=8A=B1=E7=BA=B9=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E9=A2=84=E8=AE=BE=E7=A7=BB=E5=8A=A8=E5=88=B0=E5=AE=9E=E7=94=A8?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=B1=BB=EF=BC=8C=E6=9B=B4=E7=AC=A6=E5=90=88?= =?UTF-8?q?=E5=85=B6=E5=8A=9F=E8=83=BD=E5=AE=9A=E4=BD=8D=20-=20=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E8=BA=AB=E6=9D=90=E6=94=B9=E9=80=A0=E9=A2=84=E8=AE=BE?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E5=A4=9A=E7=A7=8D=E8=BA=AB=E6=9D=90?= =?UTF-8?q?=E5=8F=98=E5=8C=96=EF=BC=88=E9=AB=98=E7=9F=AE=E8=83=96=E7=98=A6?= =?UTF-8?q?=E3=80=81=E5=BC=BA=E5=A3=AE=E8=82=8C=E8=82=89=E3=80=81=E6=80=A7?= =?UTF-8?q?=E6=84=9F=E8=BA=AB=E6=9D=90=E7=AD=89=EF=BC=89=20-=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=A1=A3=E6=A9=B1=E6=94=B9=E9=80=A0=E9=A2=84=E8=AE=BE?= =?UTF-8?q?=EF=BC=8C=E5=BC=BA=E8=B0=83=E4=BF=9D=E6=8C=81=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E7=89=B9=E5=BE=81=E4=B8=8D=E5=8F=98=E5=92=8C=E6=9C=8D=E8=A3=85?= =?UTF-8?q?=E8=87=AA=E7=84=B6=E6=80=A7=20-=20=E5=8D=87=E7=BA=A7=E4=B8=93?= =?UTF-8?q?=E4=B8=9A=E4=BA=A7=E5=93=81=E5=9B=BE=E9=A2=84=E8=AE=BE=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E4=BA=A7=E5=93=81=E7=89=B9=E5=BE=81=E4=B8=8D?= =?UTF-8?q?=E5=8F=98=E5=92=8C=E7=8E=AF=E5=A2=83=E8=87=AA=E7=84=B6=E9=9B=86?= =?UTF-8?q?=E6=88=90=20-=20=E6=94=B9=E8=BF=9B=E8=A7=92=E8=89=B2=E5=A7=BF?= =?UTF-8?q?=E5=8A=BF=E8=A7=86=E8=A7=92=E5=8F=98=E6=8D=A2=E9=A2=84=E8=AE=BE?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E5=A4=9A=E7=A7=8D=E8=A7=92=E5=BA=A6?= =?UTF-8?q?=E5=92=8C=E5=A7=BF=E5=8A=BF=E5=8F=98=E5=8C=96=20-=20=E7=BB=93?= =?UTF-8?q?=E5=90=88=E7=A4=BE=E5=8C=BA=E6=9C=80=E4=BD=B3=E5=AE=9E=E8=B7=B5?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E6=89=80=E6=9C=89=E9=A2=84=E8=AE=BE?= =?UTF-8?q?=E7=9A=84brief=E6=8F=8F=E8=BF=B0=20-=20=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E9=A2=84=E8=AE=BE=E6=8C=87=E4=BB=A4=E7=9A=84=E7=B2=BE=E7=A1=AE?= =?UTF-8?q?=E6=80=A7=E5=92=8C=E5=AE=9E=E7=94=A8=E6=80=A7=20-=20=E4=BF=9D?= =?UTF-8?q?=E6=8C=81=E6=89=80=E6=9C=89=E9=A2=84=E8=AE=BE=E7=9A=84=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=80=BB=E6=95=B0=E7=BB=B4?= =?UTF-8?q?=E6=8C=8130=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 ++++++- __init__.py | 15 ++++++- nodes/tools/kontext_presets.py | 81 +++++++++++++++++----------------- pyproject.toml | 2 +- 4 files changed, 70 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index ba7d2a3..e275404 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ComfyUI-UniversalToolkit -[![Version](https://img.shields.io/badge/version-1.2.4-blue.svg)](https://github.com/whmc76/ComfyUI-UniversalToolkit) +[![Version](https://img.shields.io/badge/version-1.2.5-blue.svg)](https://github.com/whmc76/ComfyUI-UniversalToolkit) [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE) [![ComfyUI](https://img.shields.io/badge/ComfyUI-v3+-orange.svg)](https://github.com/comfyanonymous/ComfyUI) @@ -174,7 +174,20 @@ AudioCropProcess_UTK ## 📋 版本历史 -### v1.2.4 (最新) +### v1.2.5 (最新) +- 优化Kontext预设系统,提升用户体验 +- 为所有预设添加英文分类前缀,提升节点中的可读性 +- 重新组织预设分类:Core-核心编辑、Composite-图像合成、Scene-场景环境、Photo-摄影技术、Character-人物变换、Art-艺术风格、Effect-特殊效果、Utility-实用功能 +- 将花纹提取预设移动到实用功能类,更符合其功能定位 +- 升级身材改造预设,支持多种身材变化(高矮胖瘦、强壮肌肉、性感身材等) +- 优化衣橱改造预设,强调保持角色特征不变和服装自然性 +- 升级专业产品图预设,确保产品特征不变和环境自然集成 +- 改进角色姿势视角变换预设,支持多种角度和姿势变化 +- 结合社区最佳实践,优化所有预设的brief描述 +- 提升预设指令的精确性和实用性 +- 保持所有预设的完整功能,总数维持30个 + +### v1.2.4 - 优化预设分类结构,提升用户体验 - 将原11个分类优化为7个主要分类:核心编辑、图像合成、场景环境、摄影技术、人物变换、艺术风格、特殊效果 - 合并相似类别,减少重复,提升分类逻辑性 diff --git a/__init__.py b/__init__.py index 2cd86a3..7d32269 100644 --- a/__init__.py +++ b/__init__.py @@ -8,13 +8,26 @@ A comprehensive toolkit for ComfyUI that provides various utility nodes for imag :license: MIT, see LICENSE for more details. """ -__version__ = "1.2.4" +__version__ = "1.2.5" __author__ = "CyberDickLang" __email__ = "286878701@qq.com" __url__ = "https://github.com/whmc76" # 更新日志 CHANGELOG = { + "1.2.5": [ + "优化Kontext预设系统,提升用户体验:", + "- 为所有预设添加英文分类前缀,提升节点中的可读性", + "- 重新组织预设分类:Core-核心编辑、Composite-图像合成、Scene-场景环境、Photo-摄影技术、Character-人物变换、Art-艺术风格、Effect-特殊效果、Utility-实用功能", + "- 将花纹提取预设移动到实用功能类,更符合其功能定位", + "- 升级身材改造预设,支持多种身材变化(高矮胖瘦、强壮肌肉、性感身材等)", + "- 优化衣橱改造预设,强调保持角色特征不变和服装自然性", + "- 升级专业产品图预设,确保产品特征不变和环境自然集成", + "- 改进角色姿势视角变换预设,支持多种角度和姿势变化", + "- 结合社区最佳实践,优化所有预设的brief描述", + "- 提升预设指令的精确性和实用性", + "- 保持所有预设的完整功能,总数维持30个", + ], "1.2.4": [ "优化预设分类结构,提升用户体验:", "- 重新整理预设分类,合并相似类别,减少重复", diff --git a/nodes/tools/kontext_presets.py b/nodes/tools/kontext_presets.py index a502742..77eec55 100644 --- a/nodes/tools/kontext_presets.py +++ b/nodes/tools/kontext_presets.py @@ -7,130 +7,129 @@ class LoadKontextPresets_UTK: "presets": [ # === 核心编辑类 === { - "name": "Universal Editor (万能编辑)", + "name": "Core-Universal Editor (万能编辑)", "brief": "You are a task-aware prompt translator for single-image editing using the Kontext format with the Flux model. Your role is to convert the user's natural language instruction into a clean, precise, and visually consistent image editing directive. Follow these strict rules: 1. Do not describe the original image - assume the model sees it. 2. Only describe what needs to change using clear verbs like replace, add, remove, insert, transform into, convert to. 3. Always state what must remain unchanged: for persons preserve facial features, expression, pose, hairstyle, skin tone, body proportion, clothing texture, and lighting; for objects preserve shape, scale, material, texture, surface details, lighting, reflections, and shadow behavior. 4. For background changes describe only the new scene, keep the main subject in exact same position, scale, lighting, and focus, ensure visual integration. 5. For style transfer name the visual style specifically and maintain original composition. 6. For text editing use quotes for target text and specify font retention if needed. 7. For composite edits ensure product stays visually dominant and unchanged with seamless integration. 8. Break complex changes into clear simple steps. 9. Output must be one paragraph in natural English starting with change description, including what to preserve, ending with visual consistency requirements. Based on the user's specific request: $user_prompt$, provide a precise editing instruction that follows these guidelines.", }, - { - "name": "Pattern Extraction (花纹提取)", - "brief": "Extract the visible pattern or logo from the $user_prompt$ in the image and convert it into a seamless flat texture. Remove all lighting, shading, wrinkles, folds, and perspective distortions. Ensure the output is a clean, high-resolution top-down view of the pattern with no character, background, or surrounding elements included. Preserve the original colors, fine details, and relative scale of the pattern as seen on the specified object. The extraction should isolate the pattern completely, eliminating any 3D effects, shadows, or environmental influences while maintaining the authentic visual characteristics and color palette of the original design.", - }, # === 图像合成类 === { - "name": "Context Deep Fusion (情境深度融合)", + "name": "Composite-Context Deep Fusion (情境深度融合)", "brief": "The provided image is a composite with a head and body from drastically different contexts (lighting, style, condition). Your mission is to generate instructions for a complete narrative and physical transformation of the head to flawlessly match the body and scene. The instructions must guide the AI to: 1. **Cinematic Re-Lighting**: Describe in vivid detail the scene's light sources (color, direction, hardness) and how this light should sculpt the head's features with new, appropriate shadows and highlights. 2. **Contextual Storytelling**: Instruct to add physical evidence of the scene's story onto the head, such as grime from a battle, sweat from exertion, or rain droplets from a storm. 3. **Color Grading Unification**: Detail how to apply the scene's specific color grade (e.g., cool desaturated tones, warm golden hour hues) to the head. 4. **Asset & Hair Adaptation**: Command the modification or removal of out-of-place elements (like clean jewelry in a gritty scene) and the restyling of the hair to fit the environment (e.g., messy, windblown, wet). 5. **Flawless Final Integration**: As the final step, describe the process of blending the neckline to be completely invisible, ensuring a uniform film grain and texture across the entire person.", }, { - "name": "Seamless Integration (无痕融合)", + "name": "Composite-Seamless Integration (无痕融合)", "brief": "This image is a composite with minor inconsistencies between the head and body. Your task is to generate instructions for a subtle but master-level integration. Focus on creating a photorealistic and utterly convincing final image. The instructions should detail: 1. **Micro-Lighting Adjustment**: Fine-tune the lighting and shadows around the neck and jawline to create a perfect match. 2. **Skin Tone & Texture Unification**: Describe the process of unifying the skin tones for a seamless look, and more importantly, harmonizing the micro-textures like pores, fine hairs, and film grain across the blended area. 3. **Edge Blending Perfection**: Detail how to create an invisible transition at the neckline, making it appear as if it was never separate.", }, # === 场景环境类 === { - "name": "Scene Teleportation (场景传送)", + "name": "Scene-Scene Teleportation (场景传送)", "brief": "Imagine the main subject of the image is suddenly teleported to a completely different and unexpected environment, while maintaining their exact pose. Based on the user's specific request: $user_prompt$, describe this new, richly detailed scene. The instruction must detail how the new environment's lighting and atmosphere should realistically affect the subject, including any necessary adjustments to clothing, accessories, or physical appearance to match the new setting.", }, { - "name": "Season Change (季节变换)", + "name": "Scene-Season Change (季节变换)", "brief": "Transform the entire scene to be convincingly set in a different season. Based on the user's specific request: $user_prompt$, describe the seasonal transformation in detail. Include atmospheric effects like weather conditions, seasonal lighting, foliage changes, and appropriate clothing adjustments for the subject. Make sure the transformation feels natural and seasonally appropriate.", }, { - "name": "Fantasy World (幻想领域)", + "name": "Scene-Fantasy World (幻想领域)", "brief": "Transport the entire scene and its subject into a specific, richly detailed fantasy or sci-fi universe. Based on the user's specific request: $user_prompt$, describe the complete aesthetic overhaul. Replace modern elements with fantasy/sci-fi equivalents, transform clothing and accessories to match the new universe, and ensure the subject's appearance fits the magical or futuristic setting.", }, { - "name": "Furniture Removal (清空家具)", + "name": "Scene-Furniture Removal (清空家具)", "brief": "Imagine the room in the image has been completely emptied for renovation. Based on the user's specific request: $user_prompt$, describe the furniture removal process. Specify what items need to be removed, how to realistically recreate the empty surfaces, and any necessary adjustments to lighting or architectural details to maintain the room's integrity.", }, { - "name": "Interior Design (室内设计)", + "name": "Scene-Interior Design (室内设计)", "brief": "Redesign this space in a specific, evocative style. Based on the user's specific request: $user_prompt$, describe the complete interior redesign. Specify furniture, color schemes, lighting, decor elements, and overall aesthetic while keeping the room's core structure intact. Create a cohesive design that reflects the desired style and mood.", }, # === 摄影技术类 === { - "name": "Camera Movement (移动镜头)", + "name": "Photo-Camera Movement (移动镜头)", "brief": "Propose a dramatic and purposeful camera movement that reveals a new perspective or emotion in the scene. Based on the user's specific request: $user_prompt$, describe the *type* of shot and its *narrative purpose*. Explain how this camera movement enhances the story or emotion, and detail any necessary adjustments to composition, lighting, or focus to achieve the desired cinematic effect.", }, { - "name": "Relighting (重新布光)", + "name": "Photo-Relighting (重新布光)", "brief": "Completely transform the mood and story of the image by proposing a new, cinematic lighting scheme. Based on the user's specific request: $user_prompt$, describe the lighting transformation in detail. Specify light sources, their positions, intensities, colors, and how they create the desired mood. Include any necessary adjustments to shadows, highlights, and overall atmosphere.", }, { - "name": "Camera Zoom (画面缩放)", + "name": "Photo-Camera Zoom (画面缩放)", "brief": "Describe a specific zoom action that serves a narrative purpose. Based on the user's specific request: $user_prompt$, propose either a dramatic 'push-in' (zoom in) or a revealing 'pull-out' (zoom out). Explain the narrative purpose of this zoom, what new information or emotion it reveals, and any necessary adjustments to focus, depth of field, or composition.", }, { - "name": "Professional Product Photography (专业产品图)", - "brief": "Re-imagine this image as a high-end commercial product photograph. Based on the user's specific request: $user_prompt$, describe the professional photography setup. Specify the studio lighting arrangement, background treatment, composition style, and any props or lifestyle elements that enhance the product's appeal. Focus on creating an aspirational, commercial-quality image.", + "name": "Photo-Professional Product Photography (专业产品图)", + "brief": "Place the product in $user_prompt$, ensuring its shape, texture, colors, and surface details remain unchanged. This professional photography transformation can include: 1. **Studio Environment Setup**: Create high-end commercial photography settings with professional lighting, backdrops, and staging elements. 2. **Lifestyle Integration**: Place the product in realistic lifestyle contexts like home environments, office settings, outdoor scenes, or social situations. 3. **Commercial Presentation**: Transform into catalog-style photography with clean backgrounds, product-focused composition, and professional styling. 4. **Atmospheric Contexts**: Integrate products into mood-setting environments like luxury settings, minimalist spaces, or themed atmospheres. 5. **Seasonal Campaigns**: Adapt the scene for seasonal marketing contexts while maintaining product prominence. 6. **Brand Storytelling**: Create narrative-driven scenes that tell a story about the product's use or benefits. Adjust lighting, shadows, and reflections to match the new environment while keeping the product as the visual focus. Do not alter any features of the product itself, only integrate it naturally into the specified scene. Specify the professional photography setup, including studio lighting arrangement, background treatment, composition style, and any props or lifestyle elements that enhance the product's appeal.", }, { - "name": "Tilt-Shift Miniature (微缩世界)", + "name": "Photo-Tilt-Shift Miniature (微缩世界)", "brief": "Convert the entire scene into a charming and highly detailed miniature model world. Based on the user's specific request: $user_prompt$, describe the tilt-shift miniature effect. Specify the depth of field adjustments, color saturation changes, and any modifications needed to enhance the toy-like, miniature appearance. Include details about focus areas and blur zones.", }, { - "name": "Reflection Addition (添加倒影)", + "name": "Photo-Reflection Addition (添加倒影)", "brief": "Introduce a new, reflective surface into the scene to create a more dynamic composition. Based on the user's specific request: $user_prompt$, describe the reflective surface and its placement. Specify the type of reflection (mirror-like, water, glass, etc.), its quality and distortion, and how it enhances the overall composition and mood of the scene.", }, { - "name": "Character Pose & Viewpoint Change (角色姿势视角变换)", - "brief": "Generate a $user_prompt$ view of the same character, keeping all visual features identical, including facial structure, hairstyle, expression, body proportions, clothing design, and rendering style. Only change the viewpoint angle. Ensure that lighting direction, shading, and character identity remain consistent with the original image, with no alterations to details other than the perspective. The instruction must specify the exact camera angle and position while maintaining perfect character consistency.", + "name": "Photo-Character Pose & Viewpoint Change (角色姿势视角变换)", + "brief": "Adjust the character to $user_prompt$, preserving all facial features, hairstyle, clothing details, body proportions, and overall style. This transformation can include: 1. **Camera Angle Changes**: Modify viewing angles from front, side, back, high angle, low angle, or diagonal perspectives while maintaining character consistency. 2. **Pose Adjustments**: Change body positioning, gestures, and stance while keeping natural body language and realistic proportions. 3. **Viewpoint Variations**: Create different narrative perspectives like close-up, medium shot, full body, or environmental shots. 4. **Dynamic Poses**: Transform static poses into action-oriented or expressive positions while maintaining character identity. 5. **Environmental Integration**: Adjust character positioning within the scene context while preserving scene composition. 6. **Emotional Expression**: Modify pose to convey specific emotions or attitudes while keeping facial features consistent. Ensure lighting, shadows, and perspective remain natural and consistent with the original scene. Do not alter any other visual characteristics except for the specified angle and pose. Specify the exact camera angle and position while maintaining perfect character consistency.", }, # === 人物变换类 === { - "name": "Hair Style Change (更换发型)", + "name": "Character-Hair Style Change (更换发型)", "brief": "Describe a complete hair transformation for the subject. Based on the user's specific request: $user_prompt$, detail the new hairstyle, including cut, color, texture, and styling. Explain how this hair change reflects the desired persona or story, and include any necessary adjustments to accessories or clothing to complement the new look.", }, { - "name": "Bodybuilding Transformation (肌肉猛男化)", - "brief": "Dramatically transform the subject into a hyper-realistic, massively muscled bodybuilder. Based on the user's specific request: $user_prompt$, describe the bodybuilding transformation in detail. Specify muscle development, body proportions, skin texture changes, and any necessary clothing modifications to accommodate and showcase the new physique.", + "name": "Character-Body Physique Transformation (身材改造)", + "brief": "Modify the body shape by $user_prompt$, ensuring all other visual features remain unchanged. This transformation can include various body modifications such as: 1. **Muscle Development**: Add or reduce muscle mass, define specific muscle groups (arms, chest, abs, legs), or create different bodybuilding styles (bodybuilder, athletic, lean muscular). 2. **Body Proportions**: Adjust height (taller or shorter), body frame size, shoulder width, waist size, and overall body proportions. 3. **Weight Changes**: Add or reduce body fat, create slim/lean physique, or add healthy weight distribution. 4. **Body Type Variations**: Transform into different body types like ectomorph (slim), mesomorph (athletic), endomorph (larger frame), or combinations. 5. **Aesthetic Goals**: Create specific aesthetic outcomes like 'dad bod', 'fitness model', 'strongman', 'swimmer's build', 'runner's physique', or 'yoga instructor' body. 6. **Gender-Specific Transformations**: For male subjects - create masculine features, broader shoulders, defined jawline; for female subjects - create feminine curves, toned muscles, or athletic build. Keep the face, hairstyle, clothing style, textures, colors, and proportions of unrelated body parts exactly as they are. Maintain realistic lighting, shadows, and perspective so the adjusted body shape appears natural and seamlessly integrated into the scene. Specify the exact body transformation details, including muscle definition, body fat percentage, height adjustments, and any necessary clothing modifications to showcase or accommodate the new physique.", }, { - "name": "Age Transformation (时光旅人)", + "name": "Character-Age Transformation (时光旅人)", "brief": "Visibly and realistically age or de-age the main subject. Based on the user's specific request: $user_prompt$, describe the age transformation in detail. Specify facial changes, hair modifications, skin texture adjustments, and any other age-related alterations. Ensure the transformation looks natural and appropriate for the target age.", }, { - "name": "Fashion Makeover (衣橱改造)", - "brief": "Give the subject a complete fashion makeover into a specific style. Based on the user's specific request: $user_prompt$, describe the entire outfit transformation. Specify clothing items, accessories, styling details, and how this fashion change reflects the desired aesthetic or persona. Include any necessary adjustments to hair or makeup to complement the new look.", + "name": "Character-Fashion Makeover (衣橱改造)", + "brief": "Replace the current outfit with $user_prompt$, ensuring the face, hairstyle, body shape, pose, and all other visual features remain unchanged. This fashion transformation can include: 1. **Complete Outfit Changes**: Replace entire clothing ensemble with new styles, from casual to formal, sporty to elegant, or seasonal variations. 2. **Style Transformations**: Convert between different fashion aesthetics like streetwear, business attire, vintage, bohemian, minimalist, or avant-garde. 3. **Seasonal Adaptations**: Adjust clothing for different weather conditions and seasons while maintaining style coherence. 4. **Occasion-Specific Dressing**: Create appropriate attire for specific events like weddings, parties, work, sports, or casual outings. 5. **Accessory Integration**: Add or modify accessories like jewelry, bags, shoes, hats, or scarves to complement the new outfit. 6. **Cultural Fashion**: Incorporate traditional or cultural clothing styles while maintaining modern appeal. Maintain the original lighting, shadows, and fabric texture realism, with the new clothing appearing naturally worn and consistent with the character's body. Do not alter any other elements in the scene. Specify the exact clothing items, styling details, and how this fashion change reflects the desired aesthetic or persona.", }, # === 艺术风格类 === { - "name": "Image Colorization (图像上色)", + "name": "Art-Image Colorization (图像上色)", "brief": "Describe a specific artistic style for colorizing a black and white image. Based on the user's specific request: $user_prompt$, detail the colorization approach. Specify color palette choices, artistic style influences, mood considerations, and any special effects that enhance the colorization. Go beyond simple colorization to create an artistic interpretation.", }, { - "name": "Cartoon/Anime Style (卡通漫画化)", + "name": "Art-Cartoon/Anime Style (卡通漫画化)", "brief": "Redraw the entire image in a specific animated or illustrated style. Based on the user's specific request: $user_prompt$, describe the cartoon/anime transformation. Specify the artistic style, visual characteristics, color treatment, and any stylistic elements that define the chosen animation or illustration approach.", }, { - "name": "Artistic Style Imitation (艺术风格模仿)", + "name": "Art-Artistic Style Imitation (艺术风格模仿)", "brief": "Repaint the entire image in the style of a famous art movement. Based on the user's specific request: $user_prompt$, describe the artistic style transformation. Specify the art movement, its defining characteristics, brushwork techniques, color palette, and any other stylistic elements that capture the essence of the chosen artistic style.", }, { - "name": "Pixel Art (像素艺术)", + "name": "Art-Pixel Art (像素艺术)", "brief": "Deconstruct the image into pixel art aesthetic. Based on the user's specific request: $user_prompt$, describe the pixel art transformation. Specify color palette limitations, pixel resolution, dithering techniques, and any retro gaming influences that create authentic pixel art appearance.", }, { - "name": "Pencil Sketch (铅笔手绘)", + "name": "Art-Pencil Sketch (铅笔手绘)", "brief": "Transform the image into a pencil sketch style. Based on the user's specific request: $user_prompt$, describe the pencil sketch transformation. Specify line quality, shading techniques, paper texture effects, and any artistic considerations that create an authentic hand-drawn pencil sketch appearance.", }, { - "name": "Oil Painting (油画风格)", + "name": "Art-Oil Painting (油画风格)", "brief": "Transform the image into an oil painting style. Based on the user's specific request: $user_prompt$, describe the oil painting transformation. Specify brushwork techniques, color palette choices, texture effects, and any artistic elements that create an authentic oil painting aesthetic.", }, - # === 特殊效果类 === { - "name": "Material Transformation (材质置换)", - "brief": "Re-imagine the main subject as a sculpture made from an unexpected material. Based on the user's specific request: $user_prompt$, describe the material transformation. Specify the new material's properties, how it affects the subject's appearance, lighting interactions, and any textural or reflective qualities that define the material.", - }, - { - "name": "Movie Poster (电影海报)", + "name": "Art-Movie Poster (电影海报)", "brief": "Transform the image into a compelling movie poster. Based on the user's specific request: $user_prompt$, describe the movie poster transformation. Specify the film genre, visual treatment, typography elements, and any cinematic effects that create an authentic movie poster appearance.", }, { - "name": "Technical Blueprint (蓝图视角)", + "name": "Art-Technical Blueprint (蓝图视角)", "brief": "Convert the image into a technical blueprint. Based on the user's specific request: $user_prompt$, describe the blueprint transformation. Specify the technical drawing style, measurement annotations, schematic elements, and any architectural or engineering details that create an authentic technical blueprint appearance.", }, # === 实用功能类 === { - "name": "Text Removal (移除文字)", + "name": "Utility-Material Transformation (材质置换)", + "brief": "Re-imagine the main subject as a sculpture made from an unexpected material. Based on the user's specific request: $user_prompt$, describe the material transformation. Specify the new material's properties, how it affects the subject's appearance, lighting interactions, and any textural or reflective qualities that define the material.", + }, + { + "name": "Utility-Pattern Extraction (花纹提取)", + "brief": "Extract the visible pattern or logo from the $user_prompt$ in the image and convert it into a seamless flat texture. Remove all lighting, shading, wrinkles, folds, and perspective distortions. Ensure the output is a clean, high-resolution top-down view of the pattern with no character, background, or surrounding elements included. Preserve the original colors, fine details, and relative scale of the pattern as seen on the specified object. The extraction should isolate the pattern completely, eliminating any 3D effects, shadows, or environmental influences while maintaining the authentic visual characteristics and color palette of the original design.", + }, + { + "name": "Utility-Text Removal (移除文字)", "brief": "Remove all text from the image as a meticulous restoration project. Based on the user's specific request: $user_prompt$, describe the text removal process. Specify which text elements need to be removed, how to reconstruct underlying surfaces, and any restoration techniques needed to create a seamless, text-free image.", }, ], diff --git a/pyproject.toml b/pyproject.toml index 898503e..ddbd83b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "universaltoolkit" description = "A comprehensive toolkit based on ComfyUI, providing image, mask, audio, and tools nodes, fully modular and v3 compatible." -version = "1.2.4" +version = "1.2.5" license = {file = "LICENSE"} dependencies = [ "torch",