This article will comprehensively analyze the three functions in Midjourney: With Image, sref, and cref. It will detail their differences and the best use cases for each. Mastering these concepts can enhance your AI drawing skills.
With Image (Pad Image)
Definition: With Image refers to the function of drawing one image based on another. Users can provide a reference image to generate a similar image.
Purpose: With Image is primarily used to extract features such as style, color, and composition from the reference image and generate new images based on these features. It is widely used for creating stylized avatars and generating design materials like B-end 3D icons.
Usage: Users can implement the With Image function by uploading an image link or description. Additionally, the blend
command can be used to combine multiple images for better results. The weight for With Image is called iw
(image weight). The range for iw
is 0-3, with 3 being the closest to the original image.
Example Command:
/imagine prompt: a futuristic cityscape at sunset --iw 2
sref (Style Reference)
Definition: sref is a command that pads the style of an image. Multiple images can be uploaded to mix various styles. The style weight of each image can be adjusted, as well as the balance between the image and text. sref extracts the style of the reference image but does not fully absorb its appearance.
Purpose: sref is mainly used to control the overall style, ensuring that the generated image is consistent with the style of the reference image. It is not limited to the structural composition of the reference image but replicates the style of the uploaded image.
Usage: Add --sref
to the end of the prompt, followed by the URL of the style reference image. It can be used with the --sw
(style weight) parameter to adjust the intensity of the style.
Example Command:
/imagine prompt: a futuristic cityscape at sunset --sref https://url.com/styleimage.png --sw 500
cref (Character Reference)
Definition: cref is a command that pads characters, focusing on matching the features of the character in the reference image, such as facial features, hairstyle, and clothing. The cw value ranges from 0 to 100, controlling whether to focus on the face, hair, or the entire body. A value of 0 focuses only on the face, suitable for changing hairstyles or outfits. The default value is 100, which applies to the face, hair, and entire body.
Purpose: cref is mainly used to maintain the consistency of the character in the image, generating characters similar to the existing character image.
Usage: Add --cref
to the end of the prompt, followed by the URL of the character reference image. The --cw
parameter can be used to adjust the influence of the reference image on the generated image, with values ranging from 0 to 100.
Example Command:
/imagine prompt: a futuristic cityscape at sunset --cref https://url.com/characterimage.png --cw 50
Summary
In summary, With Image is used to extract and replicate the overall features of a reference image, sref is used to extract and replicate the style of a reference image, and cref focuses on matching and replicating the character features of a reference image. Each has its own focus and can be used in different scenarios and needs, but they can also be combined for more versatile results.