PromptZone - Leading AI Community for Prompt Engineering and AI Enthusiasts

Cover image for Enhance Your AI Image Generation on Fooocus
Mohamed Muhsin
Mohamed Muhsin

Posted on

Enhance Your AI Image Generation on Fooocus

Fooocus, a modern interface for Stable Diffusion XL, offers advanced features like image prompting. This powerful tool allows you to use images alongside text prompts to guide AI image generation, enabling style replication, composition control, and even face swapping.

Fooocus interface highlighting the Image Prompt feature

Understanding Image Prompts

Unlike image-to-image generation, image prompts complement text prompts, influencing the entire image creation process. Fooocus uses advanced techniques, including:

  • IP-Adapter integration
  • Negative embedding
  • Attention hacking
  • Adaptive weighting algorithms

These enhancements make Fooocus' image prompting more effective than standard implementations.

Getting Started with Image Prompts

  1. Activate "Image Input" below the text prompt field
  2. Click on the "Image Prompt" tab
  3. Upload up to 4 reference images

Step-by-step activation of Image Prompt in Fooocus

Basic Image Prompting

Let's compare a standard text-to-image generation with an image-prompted one:

  1. Text-only prompt: "full body shot of a Beautiful girl, smiling, Urban Chic, Edgy, New York City, spring, blooming flowers, Central Park, iconic skyline, Empire State and Chrysler Buildings"

full body shot of a Beautiful girl

  1. Same text prompt + image prompt (e.g., 1woman, rooftop portrait)

rooftop portrait

Advanced Image Prompt Settings

Adjusting Image Influence

Two key parameters control image prompt strength:

  1. Weight: Determines the image's influence (default: 0.6)
  2. Stop At: Sets when the image stops influencing generation (default: 0.5)

weight variations

Multi-Image Prompting

Combine multiple reference images for creative results:

multiple reference images

ControlNet in Fooocus

Fooocus implements ControlNet-like features through two modes:

  1. PyraCanny: Edge detection optimized for high-resolution images
  2. CPDS: Structure recognition based on Contrast Preserving Decolorization

reserving Decolorizationon

Face Swapping with FaceSwap

The FaceSwap mode allows you to incorporate specific facial features:

  1. Upload an image with a clear face
  2. Adjust Weight and Stop At for desired effect
  3. Combine with text prompts for varied results

FaceSwap donald trump

Combining Techniques

For ultimate control, mix different image prompt modes:

Example combining ControlNet and FaceSwap

Top comments (0)