From Photos to Masterpieces: Automating Line Art Conversion with AI

CN
ComfyUI.org
2025-03-20 08:48:51

πŸ› οΈ Workflow Overview

m8h3yqsxdy8yhuu9dsn588ba967bd07ec2d28f897f93a33804325aac0587cf2a3d0f01e6807f1f6f4f2.png

Purpose and Function: This workflow automatically converts images to line art style using ControlNet, LoRA models, and image refinement techniques. It processes images into a clean line art output and enhances facial details.

Core Features:

  1. Line Art Extraction: Uses ControlNet + line art models to convert the image.

  2. Facial Refinement: Enhances facial details using FaceDetailer.

  3. Image Preview & Save: Displays and saves the final line art image.


πŸ”₯ Core Models

  1. Lineart_v1.1

    • Function: Main model responsible for line art transformation.

    • Installation:

      • Download the .safetensors model and place it in models/Stable-diffusion.

  2. ControlNet

    • Model: control_v11p_sd15_lineart

    • Function: Guides the line art generation.

    • Installation:

      • Place models in models/ControlNet.

  3. LoRA model: lineart_1.0

    • Function: Enhances line art quality.

    • Installation:

      • Place the model in models/Lora.


βš™οΈ Nodes Explanation

  • LoadImage: Upload image.

  • ImageResize+: Resize the image.

  • LineArtPreprocessor: Extract line art.

  • FaceDetailer: Enhance facial details.

  • PreviewImage & SaveImage: Display and save the output.


πŸ”₯ Inputs & Outputs

βœ… Inputs:

  • Uploaded image.

  • ControlNet and LoRA models.

  • Face refinement settings.

βœ… Outputs:

  • Final line art image.

  • Enhanced facial details.


⚠️ Considerations

  • Hardware Requirements: Use GPU with β‰₯8GB VRAM.

  • Compatibility: Ensure model and ComfyUI versions match.

  • Resolution: Keep image size at 1024x1024 or lower for efficiency.