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
- - Prompts Examples for Various Industries
- - Explanation and Example of v Parameter
- - Explanation and Example of ar Parameter
- - Explanation and Example of s Parameter
- - Explanation and Example of q Parameter
- - Explanation and Example of seed Parameter
- - Explanation and Example of c Parameter
- - Explanation and Example of tile Parameter
- - Explanation and Example of niji Parameter
- - Explanation and Example of no Parameter
- - Explanation and Example of iw Parameter
- - Explanation and Example of sref, sw Parameters
- - Explanation and Example of --cref, --cw Parameters
- - How Beginners Can Generate Satisfactory AI Works Based on Reference Images