28 Commits
Author SHA1 Message Date
slahiriandClaude Opus 4.5 44714971b8 Add sample workflow JSON and link in README
- Add sample_workflow.json with complete Z-Image Turbo workflow
- Includes SID_LLM_Local, SID_LLM_API, and SID_ZImagePromptGenerator
- Link to download from README

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 18:36:41 +05:30
slahiriandClaude Opus 4.5 94b16f5b91 Simplify README for novice users, move details to Technical_Details.md
- README now focused on quick start and basic usage
- Technical_Details.md contains provider configs, settings, migration guide
- Link to Technical_Details.md for advanced users

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 18:34:50 +05:30
slahiriandClaude Opus 4.5 14efea3ac0 Update README with workflow screenshot and node table
- Add full workflow screenshot as main header image
- Reorganize nodes section into table with screenshots and descriptions
- Each node now shows: name, screenshot, and detailed description

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 18:31:18 +05:30
slahiriandClaude Opus 4.5 8e6918a7a7 Update README with node screenshots and remove old sample workflows
- Add assets/ folder with node screenshots (LLM Local, LLM API, Prompt Generator)
- Update README header with SID LLM Local node image
- Add all 3 node images side-by-side in Nodes section
- Remove old sample workflow files (will be replaced)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 17:42:40 +05:30
slahiriandClaude Opus 4.5 c93f043a00 Add Phi-3.5 Vision speed note to README
- Phi-3.5 Vision marked as fastest local model
- Updated recommendation to note QwenVL for quality, Phi for speed

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 08:52:04 +05:30
slahiriandClaude Opus 4.5 6f74249807 Add QwenVL recommendation to README
QwenVL currently produces the best quality prompts among local models.
Updated table and added recommendation note.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 08:44:13 +05:30
slahiriandClaude Opus 4.5 555237e3a3 Update README with local model performance note
Add documentation that local models perform better with reasoning disabled
(single-shot mode) since they struggle with structured JSON output required
for agentic analysis.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 08:35:17 +05:30
slahiriandClaude Opus 4.5 9d134da3e8 v4.2.0: Consolidate to 3 unified nodes
Major refactor consolidating 8+ nodes into 3 unified nodes:

NEW NODES:
- SID_LLM_API: Unified cloud provider (15+ APIs including Anthropic, OpenAI, Gemini, Grok, Ollama, LM Studio)
- SID_LLM_Local: Unified local models (Florence-2, Moondream2, SmolVLM, Phi-3.5, QwenVL)
- SID_ZImagePromptGenerator: Unified prompt generator with auto Single-Shot/Agentic pipeline selection

DEPRECATED (removed):
- SID_Anthropic_LLM → use SID_LLM_API
- SID_OpenAI_Compatible_LLM → use SID_LLM_API
- SID_Grok_LLM → use SID_LLM_API
- SID_GGUF_LLM → use SID_LLM_Local
- SID_QwenVL_LLM → use SID_LLM_Local
- SID_ZImagePromptGenerator_Advanced_V2 → use SID_ZImagePromptGenerator

SPEED OPTIMIZATIONS (SID_LLM_Local):
- CUDA optimizations (cudnn.benchmark, TF32)
- BF16 auto-selection for Ampere+ GPUs
- Flash Attention 2 / SDPA auto-selection
- KV cache enabled for all models
- Memory cleanup on model switch

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 03:43:05 +05:30
slahiri 9ab17cf32e Add sample workflows section to README 2025-12-10 19:52:39 +05:30
slahiriandClaude Opus 4.5 e0df5d53af v4.1.0: High-res GGUF models and max_image_size optimization
- Add high-resolution GGUF models supporting 1024x1024+ images:
  - Qwen3-VL 2B Q4 (~4GB VRAM)
  - Qwen2.5-VL 7B Q4/Q8 (~6-10GB VRAM)
  - Llama 3.2 Vision 11B Q4 (~8GB VRAM)
  - Pixtral 12B Q4 (~10GB VRAM)
  - MiniCPM-V 2.6 (~10GB VRAM)
- Add max_image_size option for GGUF: 512/768/1024/Original
  - 512 (default): ~4x faster encoding
  - Preserves aspect ratio during resize
  - Original dimensions kept for output metadata
- Remove max_tokens slider from all LLM providers
  - Uses model's max_output_tokens from metadata directly
- Remove LLaVA 1.5/1.6 and Moondream models (limited resolution)
- Fix Qwen2.5-VL download URLs (lowercase filenames)
- Add image caching infrastructure for future optimization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 18:21:31 +05:30
slahiriandClaude Opus 4.5 b60ad15c53 v4.3.0: High-resolution prompt generation with comprehensive analysis
- Add forensic-level image analysis for near-accurate reproduction
- Add detailed subject analysis: ethnicity, skin tones with undertones
- Add facial features: eyes (gaze direction), nose, lips, eyebrows
- Add comprehensive pose analysis: all body parts, hand/palm orientation
- Add clothing coverage: neckline, exposure levels, materials, gaps
- Add cosmetics extraction: foundation, eye makeup, lips, blush
- Add structured JSON output with categorized sections
- Add LLM interaction tracking for debugging (all queries/responses)
- Add token-optimized prompts respecting max limits
- Add prompt template system (SOLID principles)
- Add multi-iteration Deep mode for local GGUF models
- Create CHANGELOG.md with full version history

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 16:48:17 +05:30
slahiriandClaude Opus 4.5 4463d973ab Comprehensive README with detailed provider setup guides
- Add detailed setup for each provider (Anthropic, OpenAI, Grok, Together AI, LM Studio, Ollama, GGUF)
- Include specific settings and values for each provider
- Restore workflow screenshot image reference
- Add changelog section
- Document all node settings with descriptions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 13:44:51 +05:30
slahiriandClaude Opus 4.5 53d81b42eb Add manual download links for GGUF models in README
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 13:39:14 +05:30
slahiriandClaude Opus 4.5 ce1633ff9b Auto-install llama-cpp-python with GPU detection
- Detect GPU type: NVIDIA CUDA, Apple Silicon Metal, AMD ROCm, CPU
- Auto-install correct llama-cpp-python wheel/build
- Support Windows, Linux, and macOS
- Update welcome message to show GPU type
- Update README to reflect auto-installation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 13:35:05 +05:30
slahiriandClaude Opus 4.5 1ca4c6e171 Convert Setup by Provider to table format in README
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 13:26:38 +05:30
slahiriandClaude Opus 4.5 2a3faadfd8 Simplify README with setup instructions for all providers
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 13:22:19 +05:30
slahiriandClaude Opus 4.5 365922dc67 Add workflow screenshot to README
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 01:46:53 +05:30
slahiriandClaude Opus 4.5 9ce2d13bb4 Bump version to 4.0.0
Major version bump for Z-Image node and multi-provider support release.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 01:26:37 +05:30
slahiriandClaude Opus 4.5 08c44b0a4a Update README and requirements for v3.1.0
- Complete README rewrite for new Z-Image node
- Document multi-provider support (Anthropic, Ollama, Grok)
- Add Ollama VRAM tier guide
- Add Z-Image best practices section
- Update troubleshooting for all providers
- Add openai and requests to requirements.txt

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 01:24:05 +05:30
slahiriandClaude 788798df95 v3.0.1 - Critical bug fixes and improvements
FIXES:
1. Color Style Not Applied (CRITICAL BUG FIX)
   - Completely rewrote color style enforcement mechanism
   - Added explicit comma-separated term mappings for each color style
   - Implemented ⚠️ CRITICAL warnings with MANDATORY requirements
   - Added contradictory term exclusions (B&W forbids "color", Color forbids "monochrome")
   - Color terms now MUST appear first in prompt sequence
   - Example: "Black and White" → "black and white photography, monochrome, grayscale, B&W, no color"

2. Model Input Connection Support
   - Added force_input=False to target_model parameter
   - Can now connect model name from model loader nodes
   - Maintains ability to type model name manually
   - Updated tooltip to clarify dual functionality

3. Enhanced Model Detection Patterns
   - SDXL: +9 patterns (pony, animagine, realvis xl, zavychroma, duchaiten, dreamshaper xl, crystal clear, hellonijicute, counterfeit xl)
   - SD 1.5: +7 patterns (deliberate, epicrealism, cyberrealistic, majicmix, chilloutmix, revanimated, absolutereality, analog madness, perfect world)
   - More comprehensive automatic model type detection

CLARIFICATIONS:
- Model Research Methodology
  * Updated docstring to clarify using pattern matching (not live web search)
  * Added note about future CivitAI/HuggingFace API integration
  * Changed research_source from "inference" to "pattern_matching"
  * Explained that real-time API calls require external dependencies

Technical Details:
- Color style system now provides exact comma-separated terms to use
- Enforcement changed from "include as PRIMARY term" to "Start with EXACT terms: X, Y, Z"
- Added explicit prohibition against contradictory terms
- Model detection now covers 30+ popular model names across all types

Why These Fixes:
User reported color style (B&W) not being applied even when selected. Root cause was insufficient enforcement in system prompt. New approach uses explicit term lists and critical warnings to Claude, ensuring compliance.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 21:24:10 +05:30
slahiriandClaude 1808a33f18 v3.0.0 - Intelligent Prompting Agent with Model Research
MAJOR UPDATE: Transformed into an intelligent prompting agent that automatically researches models and provides tailored recommendations.

🚀 NEW FEATURES:
- Intelligent Model Research Agent
  * Automatically detects model type from name (FLUX/SDXL/SD 1.5)
  * Infers model characteristics and capabilities
  * Prepared for CivitAI and HuggingFace MCP integration
  * Tailors all prompt generation based on research

- Sampler Configuration Output (3rd output)
  * Auto-generates optimal sampler settings per model
  * Markdown-formatted with pretty tables
  * Includes: sampler, steps, CFG scale, clip_skip, etc.
  * Model-specific guidance and recommendations

- Dynamic Model Input
  * Changed from dropdown to text input
  * Accepts ANY model name (FLUX.1-dev, juggernaut_reborn, etc.)
  * Agent intelligently adapts to any model

BREAKING CHANGES:
- Output names simplified:
  * positive_prompt → positive
  * negative_prompt → negative
  * NEW: sampler_config (3rd output)

- Target model parameter:
  * Was: Dropdown (FLUX, SDXL, SD 1.5, Universal)
  * Now: Text input accepting any model name
  * Agent automatically detects and optimizes

Implementation Details:
- New _research_model() function (lines 305-428)
  * Pattern matching for model type detection
  * Returns comprehensive model_info dict
  * Includes characteristics, token limits, sampler settings

- New _generate_sampler_config() function (lines 781-826)
  * Generates markdown with settings table
  * Provides model-specific guidance
  * Pretty formatting for easy reading

- Updated _build_system_prompt()
  * Now receives model_info dict instead of string
  * Incorporates model characteristics into prompts
  * Adjusts token limits based on detected type

- Enhanced Console Logging
  * Shows complete model research results
  * Displays detected type, base model, characteristics
  * Outputs sampler configuration recommendations

Why This Update:
Users need prompts optimized for their SPECIFIC model, not just generic types. This intelligent agent researches the actual model being used and tailors everything accordingly. The sampler config output provides actionable recommendations that can be immediately applied in ComfyUI workflows.

Ready for Future Enhancement:
- MCP integration points prepared for CivitAI search
- MCP integration points prepared for HuggingFace search
- Can be enhanced with live API lookups when MCPs configured

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 21:03:32 +05:30
slahiriandClaude a78fc296c0 v2.0.0 - Major rewrite: Comma-separated prompts with token management
BREAKING CHANGE: Complete rewrite of prompt generation system to output clean comma-separated prompts instead of markdown-formatted text. This addresses the core issue where markdown formatting doesn't work with image generation models.

Key Changes:
- Comma-separated single-line output format (no markdown, no sections)
- Token limit management per model based on research:
  * FLUX: 200-256 optimal (max 512), concise negatives (30-50)
  * SDXL: 27-75 optimal (max 75), moderate negatives (40-60)
  * SD 1.5: 50-75 optimal (max 75), comprehensive negatives (75-100)
  * Universal: 100-120 optimal, balanced negatives (50-70)
- Priority-based prompt sequencing:
  * Priority 1: Style requirements (color, photographer, lighting)
  * Priority 2: Subject description
  * Priority 3: Technical details
  * Priority 4: Quality terms
- Streamlined system prompts (850 lines → 653 lines)
- Model-specific negative prompt strategies
- User instructions and style requirements now appear FIRST in prompts

Technical Implementation:
- Rewrote _build_system_prompt() function completely
- Added explicit token limit guidance to Claude
- Implemented priority sequencing system
- Maintained all existing parameters and features
- Preserved photographer and lighting descriptions
- Enhanced model-specific optimization instructions

Why This Update:
Previous versions generated markdown-formatted prompts with section headers and bullet points. These don't work properly with FLUX/SDXL/SD 1.5 models which expect comma-separated keyword lists. This major rewrite ensures proper prompt format and token length for each model type.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 20:46:10 +05:30
slahiriandClaude 1732238fbc Fix seed parameter widget rendering (v1.3.4)
Fixed issue where seed parameter was not rendering correctly as a proper integer input with randomization controls. Added control_after_generate=True parameter which enables the standard ComfyUI seed widget with increment/decrement/randomize buttons. Also cleared Python cache to ensure clean node definition loading.

Changes:
- Added control_after_generate=True to seed Int.Input
- Cleared __pycache__ directory for clean reload
- Updated version to 1.3.4
- Added changelog entry for bugfix

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 16:30:23 +05:30
slahiriandClaude cff4c123d9 Fix backward compatibility with old workflows (v1.3.3)
Fixed validation error that occurred when loading workflows saved before seed, lighting_condition, color_style, and photographer_style parameters were added. Added None value handling in execute function to provide safe defaults when these parameters are missing from older workflows.

Changes:
- Added None checks for seed (defaults to 0), lighting_condition, color_style, and photographer_style (default to "None")
- Updated version to 1.3.3
- Added changelog entry for bugfix
- Ensures old workflows continue to work seamlessly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 16:23:32 +05:30
slahiriandClaude 6c30d3db16 Fix seed parameter displaying nan (v1.3.2)
Fixed issue where seed parameter was showing "nan" in the ComfyUI interface. Changed the max value from 0xffffffffffffffff (64-bit max) to 2147483647 (standard 32-bit signed int max), which is the standard approach used in ComfyUI nodes.

Changes:
- Updated seed max value to 2147483647
- Updated version to 1.3.2
- Added changelog entry for bugfix

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 16:12:48 +05:30
slahiriandClaude e2fa51c545 Add lighting condition feature (v1.3.1)
Added comprehensive lighting_condition dropdown with 31 options across 4 categories (Studio Lighting, Studio Techniques, Outdoor/Natural, Special/Creative). Each lighting type includes detailed characteristics for light source, quality, direction, color temperature, shadows, and mood. Updated system prompts to incorporate lighting conditions into positive prompt generation.

Changes:
- Added lighting_condition parameter with 31 lighting options
- Updated execute function signature and system prompt builder
- Created lighting_descriptions dictionary with detailed specs
- Updated docstring and version to 1.3.1
- Updated README with lighting condition documentation
- Added changelog entry for v1.3.1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 16:06:41 +05:30
slahiri 6fd930b8c6 Version 1.3.0 - Color Styles, Photographer Styles, and Randomization
NEW FEATURES:
- Color Style dropdown with 9 options (None, B&W, Color, Monochrome, Sepia, Cross-Processed, High Contrast B&W, Low Key, High Key)
- Photographer Style dropdown with 20 famous photographers (Helmut Newton, Peter Lindbergh, Annie Leibovitz, Richard Avedon, Irving Penn, Herb Ritts, Mario Testino, Steven Meisel, Patrick Demarchelier, Paolo Roversi, Tim Walker, Ellen von Unwerth, David LaChapelle, Steven Klein, Mert and Marcus, Juergen Teller, Bruce Weber, Terry Richardson, Rankin, Albert Watson)
- Seed parameter for randomization (standard ComfyUI seed system)

IMPROVEMENTS:
- System prompts now incorporate color style requirements
- Each photographer has detailed style descriptions (lighting, composition, post-processing)
- Enhanced console logging (shows color style, photographer style, seed)
- All new features have "None" options for backward compatibility

FILES CHANGED:
- sid_ai_prompt_generator.py: +109 lines (new parameters, photographer descriptions, color style logic)
- __init__.py: Version bump to 1.3.0
- README.md: +35 lines (new features documentation, updated changelog)

Author: Siddhartha Lahiri

🤖 Generated with Claude Code
2025-11-18 15:25:03 +05:30
slahiri adf68d75e1 Initial release v1.2.0 - ComfyUI AI Photography Toolkit
- SID_AIPromptGenerator: AI-powered prompt generation using Anthropic Claude
- 4 Photography Styles: Artistic, Technical, Minimal, Ultra-Detailed
- Model optimization: FLUX, SDXL, SD 1.5, Universal
- Comprehensive categorized negative prompts (8 categories, 300+ terms)
- Auto-dependency installation (anthropic library)
- Complete documentation and examples

Author: Siddhartha Lahiri
License: MIT

🤖 Generated with Claude Code
2025-11-18 15:06:45 +05:30