1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

2次元イラストAIをいじってみる

Last updated at Posted at 2024-02-08

AIアニメイラストの依頼が多いみたいなので、
リアルではなく、アニメイラストのほうも勉強してみる。

特にこの記事はモデルでどういう画像が生成されるかが
一覧になっている。
:arrow_down:要チェック:arrow_down:

手、指を修正するのに役立つ動画

目、顔を修正するのに役立つ動画

ローカルの既存の画像を生成し直すのに便利な記事

CFG scale

プロンプトに対してどれだけ忠実な画像を生成するかを指定する数値です。

数値が大きいほど、
プロンプトに忠実な画像を生成しようとします。
公式の学習モデルでは、
一般的に7〜11の範囲で数値を指定します。

プロンプトを強く反映させたい場合はCFG scaleを大きく設定し、画像の品質を重視する場合はCFG scaleを小さく設定します。

Denoising strength

元画像から画像を生成する際の変化の自由度を値にしたもの

値が小さいほど元の画像に近い画像を生成する。
値が大きいほど変化の加わった画像を生成する。

値を上げれば上げるほど画像が崩れやすくなるので、その都度プロンプトを追加して画像が崩れないよう対策しましょう。

モデル一覧

HimawariMix

HimawariMix
DL URL https://civitai.com/models/131611/himawarimix

生成

HimawariMix
positive 1girl,solo,light brown hair,long hair,ahoge,pink eyes,half-closed eyes,small breasts,head tilt,group_sex,homurahara_academy_uniform,animal_costume, beautiful detailed water,out of frame,
negative (hair bobbles,hair ornament,headpiece,wolf ears,pale skin:1.2),((curvy, mature ,mature female):1.1),, (worst quality, low quality:1.4), (fuze:1.4), (worst quality:1.1), (low quality:1.1), (worst quality, low quality:1.4), (fuze:1.4), (worst quality:1.1), (low quality:1.4), ((grayscale)),text,error,missing fingers, missing arms,missing legs, extra digit, extra fingers,fewer digits,extra limbs,extra arms,extra legs,malformed limbs,fused fingers,too many fingers,long neck,cross-eyed,mutated hands, cropped,poorly drawn hands,poorly drawn face,mutation,deformed,worst quality,low quality, normal quality, blurry,ugly,duplicate,morbid,mutilated,out of frame, body out of frame,

image.png

prompt
positive 1girl,solo,light brown hair,long hair,ahoge,pink eyes,half-closed eyes,small breasts,head tilt, beautiful detailed,out of frame, school ,24 years old, in the classroom
negative (hair bobbles,hair ornament,headpiece,wolf ears,pale skin:1.2),((curvy, mature ,mature female):1.1),, (worst quality, low quality:1.4), (fuze:1.4), (worst quality:1.1), (low quality:1.1), (worst quality, low quality:1.4), (fuze:1.4), (worst quality:1.1), (low quality:1.4), ((grayscale)),text,error,missing fingers, missing arms,missing legs, extra digit, extra fingers,fewer digits,extra limbs,extra arms,extra legs,malformed limbs,fused fingers,too many fingers,long neck,cross-eyed,mutated hands, cropped,poorly drawn hands,poorly drawn face,mutation,deformed,worst quality,low quality, normal quality, blurry,ugly,duplicate,morbid,mutilated,out of frame, body out of frame,

image.png

このネガティブプロンプトが最強すぎるのか?

prompt
positive 1girl,solo,light pink hair,semilong hair,ahoge,red eyes,small breasts,head tilt, beautiful detailed,out of frame, office room ,24 years old, so angry open mouth, standing, wearing gray suit
negative (hair bobbles,hair ornament,headpiece,wolf ears,pale skin:1.2),((curvy, mature ,mature female):1.1),, (worst quality, low quality:1.4), (fuze:1.4), (worst quality:1.1), (low quality:1.1), (worst quality, low quality:1.4), (fuze:1.4), (worst quality:1.1), (low quality:1.4), ((grayscale)),text,error,missing fingers, missing arms,missing legs, extra digit, extra fingers,fewer digits,extra limbs,extra arms,extra legs,malformed limbs,fused fingers,too many fingers,long neck,cross-eyed,mutated hands, cropped,poorly drawn hands,poorly drawn face,mutation,deformed,worst quality,low quality, normal quality, blurry,ugly,duplicate,morbid,mutilated,out of frame, body out of frame,

image.png

このモデルを使用すると全般的に萌えアニメチックになるのね。
ただ最強すぎる。

MomijiMix

MomijiMix
DL URL https://civitai.com/models/176410/momijimix

先ほどの3パターンのプロンプトを使って生成してみよう。

1プロンプト目

image.png

2プロンプト目

image.png

3プロンプト目

image.png

すごくきれい!
なんか感動作のアニメチックなタッチ。

HimawariMixが制服素材が多いのかわからないけど
MomijiMixのほうが社会人に対応しそう。

prompt
positive 1girl,solo,light black hair,short hair,ahoge,small breasts,head tilt, beautiful detailed,out of frame, office room ,36 years old, so angry open mouth, standing, wearing gray suit

image.png

36歳黒髪ショートでプロンプト作ってみたけど、
やっぱりアニメ調ではおばさんにならないな...
黒髪の方がちゃんとスーツを着てくれるイメージ。

prompt
positive 1girl,solo,light black hair,long hair,small breasts,head tilt, beautiful detailed,out of frame, office room ,36 years old, so angry open mouth, standing, wearing gray suit

image.png

黒髪ロングにして、アホ毛を消したら大人っぽくなった?

ちなみにこのプロンプトでHimawariMixモデルを使用してみると...?

image.png

image.png

...悪くないけどアニメタッチが強いね。
アニメ感をより強く出したいのならひまわりかな。

BeautifulRealisticならちゃんとシワつけてくれるのにね...

image.png

CottonCandy Pastel

CottonCandy Pastel
DL URL https://civitai.com/models/91970/cottoncandy-pastel

なんか色合いのいいモデルがあったので早速DL。
同様に3プロンプト流し込んでみる。

1プロンプト目

image.png

なんか全体的に色気のある画像が多いな...
このモデルにおいてはhalf-closed eyes
ちょっとアレな感じで描かれてしまうのかな。

それとも眠そうな素材が少ないのか...

2プロンプト目

image.png

3プロンプト目

image.png

これもこれでかなり色合いが素晴らしい!
個人的には好きなモデルかも。

ただ、若干3D要素が出てくるので、
よくある中華系のAI漫画に出てきそうな感じのタッチ。
完全にアニメ調を求めるにはこれがベストではないのかな...

リアルが好きな筆者的にはかなりおすすめなモデル。

anything v5

anything v5
DL URL https://civitai.com/models/9409?modelVersionId=30163

どんどん試していきます。

1プロンプト目

image.png

2プロンプト目

image.png

3プロンプト目

image.png

あ、これが一番いいかも。
3Dよりかはアニメより。

キャラをそのままにして別のことをさせたい。

まずは適当に画像を生成

anything_v50
positive solo, 30 years old woman, mature, beautiful, long black hair, smile, flat chest, gold earring, Skinny blue jeans, white T-shirt, garden
negative (hair bobbles,hair ornament,headpiece,wolf ears,pale skin:1.2),((curvy, mature ,mature female):1.1),, (worst quality, low quality:1.4), (fuze:1.4), (worst quality:1.1), (low quality:1.1), (worst quality, low quality:1.4), (fuze:1.4), (worst quality:1.1), (low quality:1.4), ((grayscale)),text,error,missing fingers, missing arms,missing legs, extra digit, extra fingers,fewer digits,extra limbs,extra arms,extra legs,malformed limbs,fused fingers,too many fingers,long neck,cross-eyed,mutated hands, cropped,poorly drawn hands,poorly drawn face,mutation,deformed,worst quality,low quality, normal quality, blurry,ugly,duplicate,morbid,mutilated,out of frame, body out of frame

image.png

image.png

ControlNetに向けてドラッグ&ドロップ

image.png

Enable

image.png

Preprocessorreference_only

image.png

プロンプトを入れていなくても先ほどの黒髪ロングお姉さんが生成される。

prompt
positive furisode, standing, temple

image.png

たまに違う画像が作られるけど、
ニュアンスはあっていそう。
お寺の赤に引っ張られたのかな。

prompt
positive waitress, cafe, amazing, holding a coffee cup

image.png

これは単純にプロンプトが悪そうです。

ローカルの画像を修正したい。

image.png

これ、ちょっと指がおかしいんです。
そういうときはimg2imgInpaintかなー。要調査

その他

image.png

商用で使えるかということも調査しないといけないんだな。

civitaiに書かれてあるらしい

image.png

生成した画像を商用利用する際は、

  • Sell images they generate
  • Run on services that generate images for money
    にチェックが入っているか確認する必要があるとのこと

単純に画像を生成して、その画像を売る分には

Sell images they generate

にチェックが入っていれば大丈夫そうだね。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?