Explanation and Example of --iw Parameter
In MJ, the --iw
parameter stands for "image weight", which represents the weight of the image. It is used to adjust the ratio of image input to text input in prompts, helping you better control how AI balances the influence of images and text descriptions when generating images.
--iw
Function
- Controlling the Influence of Images: By specifying a value for
--iw
, you can determine how much weight the uploaded image carries in the generated result. A higher value of--iw
will give more influence to the image input in the final result, while a lower value will let the text description dominate. - Default Value and Range: The default value of the
--iw
parameter is1
. Typically, the value of--iw
can be adjusted between0.1
and3
(the range may vary in different versions, as shown in the table below). The specific value depends on how much impact you want the image input to have.
Version 6 | Version 5 | Version 4 | niji 6 | niji 5 | |
---|---|---|---|---|---|
Default Value | 1 | 1 | NA | 1 | 1 |
Value Range | 0–3 | 0–2 | NA | 0–3 | 0–2 |
Two Usage Methods
- Adjusting with a Slider after Uploading an Image
- Directly Inputting in Prompts: You can upload an image while entering prompts and use the
--iw
parameter to adjust the weight of the image.
Reference of Final Image Results with Different Values (Closer to the Original Uploaded Image with Larger Values)
- - 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