# Enhance Your AI Image Generation on Fooocus

> Published 2024-07-11 · https://www.promptzone.com/muhsin/enhance-your-ai-image-generation-on-fooocus-23c0

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](https://promptzone-community.s3.amazonaws.com/uploads/articles/y4lz9yhc80ppo3o0wxwb.jpeg)

## 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](https://promptzone-community.s3.amazonaws.com/uploads/articles/ri6dhtz6nz4tlrfokm0l.png)

## 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](https://promptzone-community.s3.amazonaws.com/uploads/articles/b46jv54nayyb69ubbw3b.png)

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

![rooftop portrait](https://promptzone-community.s3.amazonaws.com/uploads/articles/rgwqp65pu0fnfotgg3a2.jpeg)

## 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](https://promptzone-community.s3.amazonaws.com/uploads/articles/q33oinsbebfe7fruubu7.png)

### Multi-Image Prompting

Combine multiple reference images for creative results:

![multiple reference images](https://promptzone-community.s3.amazonaws.com/uploads/articles/rtnyjgp82zjwgcijzm0t.png)

## 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](https://promptzone-community.s3.amazonaws.com/uploads/articles/r4u5amn0f80jdh372q24.png)

## 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](https://promptzone-community.s3.amazonaws.com/uploads/articles/g2gctphzgcxkbkgz336f.jpeg)

## Combining Techniques

For ultimate control, mix different image prompt modes:


![Example combining ControlNet and FaceSwap](https://promptzone-community.s3.amazonaws.com/uploads/articles/0b12jo6ozaorks1i6ko9.png)

