Zuotu - AI makes drawing so easy.

Gallery 8,000+ | Start Drawing | Price | Sign Up & Log In | 切成中文

Explanation and Example of --cref, --cw Parameters

The core is to solve the problem of role consistency, and to generate images with characters based on the ones you upload.

To add character references to prompts, use the --cref parameter and the URL of the image stored online: --cref URL

Hint --cref ImageLink
  • When using AI-generated images with a single character, the effect is best.
  • --cref is used for real photos, which may cause some distortion.
  • Specific details like freckles or T-shirt logos are less likely to be replicated.
  • --cref can be used with AI painting and Niji Version 6, and can be combined with --sref.
  • You can reference multiple images in a single prompt, but it may not be necessary.



Example

1. Upload a reference image and get the image's URL

URL: http://reserve-mask-1256181000.cos.ap-shanghai.myqcloud.com/img/cdn/mask-20241014/e5d01d9a32f102c5b773ca86431603f3.jpg/1024


2. Let's first look at the case without using a reference image (output as follows)

A man sitting in a cafe, illustration style


3. The situation after adding a reference image (output as follows), the character in the output is based on the reference image

A man sitting in a cafe, illustration style --cref  http://reserve-mask-1256181000.cos.ap-shanghai.myqcloud.com/img/cdn/mask-20241014/e5d01d9a32f102c5b773ca86431603f3.jpg/1024

Adjusting the weight of the reference image

Use the character weight parameter --cw to set the intensity of character portrayal. --cw accepts values from 0 to 100 --cw 0. Focus only on the character's face. Higher values will use the character's face, hair, and clothes. --cw 100 is the default value.



Multiple reference images

A man sitting in a cafe, illustration style --cref  http://reserve-mask-1256181000.cos.ap-shanghai.myqcloud.com/img/cdn/mask-20241014/e5d01d9a32f102c5b773ca86431603f3.jpg/1024  http://reserve-mask-1256181000.cos.ap-shanghai.myqcloud.com/img/cdn/mask-20241014/e5d01d9a32f102c5b773ca86431603f3.jpg/1024  http://reserve-mask-1256181000.cos.ap-shanghai.myqcloud.com/img/cdn/mask-20241014/e5d01d9a32f102c5b773ca86431603f3.jpg/1024


Getting Started with AI Drawing
Related Content