Back to Homepage

ControlNet

Integrating Pose, Edge, and Depth Controls for Enhanced Image Synthesis

The Idea

While latent diffusion models (LDMs) excel at text-to-image synthesis, text prompts alone often fail to provide the precise spatial and structural control needed for creative tasks. Existing solutions like ControlNet typically use single structural conditions (e.g., pose or edges or depth). This project proposed and investigated a multi-modal approach to simultaneously integrate three key structural guidance signals—pose estimation (OpenPose skeletons), edge maps (Canny edges), and depth information (Zoe depth maps)—within the LDM pipeline using ControlNet components. The core concept was to enable creators to fine-tune image generation by adaptively weighting the influence of these combined controls, achieving greater alignment with desired structures while maintaining creative flexibility.

Development

The approach was implemented without requiring additional model training, building upon existing LDMs and pretrained ControlNet modules.  

  • Integration: A system, demonstrated using a ComfyUI workflow, was set up to process a source image and extract Canny edges, OpenPose skeletons, and Zoe depth maps simultaneously.  
  • Multi-ControlNet Application: These three structural maps were fed into parallel ControlNet modules guiding a diffusion-based generative model, influenced by standard text prompts.  
  • Adaptive Weighting: A key component was the implementation of adjustable weights for each control signal (pose, edge, depth), allowing dynamic balancing of their influence during image generation.  
  • Experimentation: Various weighting combinations were tested—balanced (e.g., 33% each), emphasizing one condition (e.g., 50% depth), and moderately skewed (e.g., 40% pose)—to observe their impact on the final output.  
  • Refinement: The workflow also incorporated post-processing steps like face restoration using ReActor for enhanced realism.
Experiment 1
Experiment 2
Experiment 3
Results of Experiments 1, 2 and 3

Reflection

This research successfully demonstrated the feasibility and benefits of using multiple structural controls (pose, edge, depth) simultaneously in LDMs via ControlNet. The qualitative evaluation showed that this multi-modal guidance, particularly when balanced, enhances both structural fidelity and aesthetic appeal compared to relying on single conditions. The adaptive weighting mechanism proved effective, offering creators valuable flexibility to prioritize specific attributes (like pose accuracy or depth perspective) or achieve a harmonious blend, depending on their goals. While promising, the approach introduces greater complexity in managing controls and necessitates user tuning for optimal results depending on the task. The study highlights a valuable direction for achieving more precise and controllable generative art and design, paving the way for future work on more sophisticated integrations and user interfaces.

What Worked

  • Successful simultaneous integration and application of pose, edge, and depth ControlNets within a single generation process.  
  • The adaptive weighting system provided effective, granular control over the influence of each structural signal.  
  • Achieved enhanced structural accuracy and alignment with combined inputs compared to single controls.  
  • Balancing the weights generally produced well-rounded results with good realism and structure.  
  • Skewing weights allowed for targeted emphasis on specific structural aspects like depth or pose fidelity.  

What Did Not Work / Limitations

  • Managing multiple control signals increases the complexity of the generation setup.  
  • Finding the optimal weighting strategy can be subjective and may require experimentation and fine-tuning depending on the specific image and desired outcome.  
  • Combining multiple ControlNets could potentially increase computational overhead compared to using just one.  
  • The evaluation relied on qualitative self-assessment rather than quantitative metrics or broader user studies.  
  • The core approach utilized existing pretrained models without involving new model training.  

Previous project
Back to all projects