Introduction of Character Reference (Cref) to generate images with fixed characters in Midjourney

機能
この記事は約6分で読めます。

This article details Midjourney’s new feature, Character Reference (Cref), a function that generates images by referencing characters.

This article will enable Midjourney’s image generation to generate new images with fixed characters.

*This is a test feature as of 3/12/2024.

Character Reference

Midourney’s Character Reference (henceforth Cref) is a function that generates a new image by referencing the character in a given image.

Whereas Style Reference generates a new image by referencing a painting style or styles, this CRef focuses on the character and generates a new image.

Reference image

Generated image

How to use CRef|–cref parameter

We will actually explain how to use Cref.

For this explanation, we will use this character generated by Midjourney.

Basic usage of Cref

The CRef prompt is in this format.

  1. Character Description
  2. Character Behavior
  3. URL of the referenced image

First, by changing this “Character Behavior” prompt to generate an image, we were able to fix the character and make it take on various actions and facial expressions, as shown here.

roll about laughing

gets angry

cries a lot

jumps up and down

Adjust reference weight|–cw 0 – 100

The –cw parameter can be used to adjust the weighting of character references.

  • –cw 100 : Refer to character’s face, hair, and clothing (default)
  • –cw 0:Focus only on the character’s face (great for changing clothes and hair)

Now try to change the costume and hairstyle at the “Character Description” prompt and generate an image with the –cw parameter.

Prompt after changes (T-shirt and ponytail)

Result

–cw 75

–cw 50

–cw 25

–cw 0

As you can see, the effect on hair and clothing is apparent around the setting of 25 for –cw.

Specify multiple characters in a Cref

Multiple images can be specified for the –cref parameter.

Example 1

Image 1

Image 2

Result

Example 2

Image 1

Image 2

Result

Use with Style Reference |–sref

Cref can also be used with Style Reference (–sref parameter).

In this case, when a three-dimensional character was specified in the –sref parameter, an image that looks three-dimensional was generated as shown here.
*All four images were divided and specified for –sref.

–cref

–sref

Result

Character Reference Limitations

As of 3/12/2024, Character Reference is a test feature and has the following limitations

  • Not compatible with real people or photographs.
  • Accuracy is limited; dimples, freckles, T-shirt logos, etc. cannot be accurately copied.

The following characters, which are photographic copies of real dolls, may not yet be supported.

Reference image

Generated image

Official site below

The AI workspace that works for you. | Notion
A tool that connects everyday work into one space. It gives you and your teams AI tools—search, writ

Midjourney キャラクターを固定して画像を生成するCrefの紹介|Character Reference

機能
この記事は約4分で読めます。

この記事ではMidjourneyの新機能、キャラクターを参照して画像を生成する機能「Character Reference(Cref)」について詳しく解説していきます。

この記事を読むことで、Midjourneyの画像生成でキャラクターを固定して新しい画像を生成できるようになります。

※2024/3/12時点でテスト機能です。

Character Reference

MidourneyのCharacter Reference(以降Cref)は、指定した画像のキャラクターを参照して新しい画像を生成する機能です。

Style Referenceが画風やスタイルを参照して新しい画像を生成するのに対し、このCRefはキャラクターに焦点を当てて新しい画像を生成します。

参照画像

新しく生成した画像

CRefの使い方|–crefパラメータ

実際にCrefの使い方を説明していきます。

今回の説明ではMidjourneyで生成したこちらのキャラクターを使用します。

Crefの基本的な使い方

Crefの基本的な使い方(プロンプト)はこのような形式になっています。

  1. キャラクターの説明
  2. キャラクターの行動
  3. 参照する画像のURL

まずはこの「キャラクターの行動」のプロンプトを変更して画像を生成してみると、このようにキャラクターを固定して様々な行動(表情)をとらせることができました

roll about laughing

gets angry

cries a lot

jumps up and down

–cwで参照の重みを調節することも可能

–cwパラメータを指定することで、キャラクター参照の重みづけを調節することができます。

  • –cw 100 : キャラクターの顔、髪、服を参照する(既定)
  • –cw 0:キャラクターの顔だけにフォーカスされる(服装や髪を変えるのに最適)

今度は「キャラクターの説明」のプロンプトで衣装と髪型を変更し、–cwパラメータを指定して画像を生成してみたところ、このような結果になりました。

変更後のプロンプト(Tシャツとポニーテール)

結果

–cw 75

–cw 50

–cw 25

–cw 0

このように、–cwに25を設定した辺りから髪型や服装に影響が表れているのがわかります。

Crefに複数のキャラを指定する

–crefパラメータには複数の画像を指定することもできます

パターン1

画像1

画像2

結果

パターン2

画像1

画像2

結果

Style Reference(–sref)と併用

CrefはStyle Reference(–srefパラメータ)とも併用可能です。

今回、–srefパラメータに立体的なキャラを指定してみたところ、このように少しだけ立体的な画像が生成されました。
※4枚すべて分割して–srefに指定

–cref

–sref

結果

Character Referenceの制限

2024/3/12時点でCharacter Referenceはテスト機能のため、以下の制限があります。

  • 実在の人物や写真には対応していない
  • 精度には限界があり、くぼみやそばかす、Tシャツのロゴなどは正確にコピーできない

以下のように、実在の人形を写した写真のようなキャラクターについては、まだ対応していない可能性があります。

元画像

crefで新しく生成

以下公式サイトです。

The AI workspace that works for you. | Notion
A tool that connects everyday work into one space. It gives you and your teams AI tools—search, writ
タイトルとURLをコピーしました