From Reference to Reality: AI-Driven Character Style Transfer and Prompt Reverse Engineering
Workflow Overview

This workflow performs character style transfer + prompt reverse engineering, with:
IPAdapter + InstantID for facial feature preservation
Meta-Llama-3.1-8B for automatic prompt generation
niji-Anime-SDXL model for anime-style image generation
Key Models:
niji-动漫二次元-sdxl_2.0
: Anime-style generationunsloth/Meta-Llama-3.1-8B-Instruct
: Prompt reverse engineeringip-adapter_instant_id_sdxl
: Identity preservation
Node Breakdown
Joy_caption_two_load
Purpose: Loads Meta-Llama for prompt reverse engineering
Install: Manual install via ComfyUI-Custom-Scripts
Depends:
unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit
(HuggingFace login required)
InstantIDModelLoader
Purpose: Loads InstantID for facial feature binding
Install: Requires ComfyUI-InstantID
Depends:
ip-adapter_instant_id_sdxl.safetensors
IPAdapterAdvanced
Purpose: Advanced style adaptation
Install: Install IPAdapter Plus via ComfyUI Manager
Workflow Structure
Group 1: Prompt Reverse Engineering
Input: Reference image →
Joy_caption_two
Output: Generated description (e.g., "A maid with golden eyes...")
Group 2: Facial Feature Fusion
Input: Source face + InstantID parameters
Output: Latent data with facial features
Group 3: Image Generation
Input: Reverse-engineered prompts + fused model
Output: Final anime-style image
Inputs & Outputs
Inputs:
Style reference image (768x1024 PNG)
Source face image (recommended 512x512)
Negative prompts (pre-configured)
Output:
768x1024 anime-style image
Notes
⚠️ Required Dependencies:
ComfyUI-InstantID plugin
IPAdapter Plus plugin
Meta-Llama-3.1-8B (requires 16GB VRAM)
💡 Tips:
Use
VIT-G (medium strength)
for speed/quality balanceReduce resolution to 512x768 if VRAM insufficient