上原亜衣モデルを試してみる

2023年4月8日
知恵
Pocket

Colaboratoryで、ランタイムをGPUにして、以下を実行します。

!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
%cd /content/stable-diffusion-webui

Civitai Helperを導入していきます。

%cd /content/stable-diffusion-webui/extensions/
!git clone https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper /content/stable-diffusion-webui/extensions/Stable-Diffusion-Webui-Civitai-Helper
%cd /content/stable-diffusion-webui

Stable Diffusion Web UIを実行させます。

!python launch.py --share --xformers --enable-insecure-extension-access
[自分用メモ]Stable Diffusion web UIを試す

[自分用メモ]Stable Diffusion web UIを試す

Colaboratoryにノートブックを新規作成する 編集 - ノートブックの設…
zaitakukinmu.com
上原亜衣モデルを試してみる

Civitiai Helperというタブが出現します。

Civitiai URLに、以下のURLを入力して、1.Get Model Info by Civitiai urlボタンをクリックします。

上原亜衣モデルを試してみる

AI_uehara - v5.0 | Stable Diffusion LoRA | Civitai

This is the official LoRA model based on…
civitai.com

Model Name, Model Type等が自動で入ります。

Sub-folderの部分は、”/”を選択します。Model Versionはv1.0_23042を選択します。

3.Download Modelをクリックして、ダウンロードします。

上原亜衣モデルを試してみる

以下のようにモデルが取り込まれます。

上原亜衣モデルを試してみる

Colaboratoryのフォルダに、モデルがDLされていることが確認できます。

上原亜衣モデルを試してみる

DLしたモデルが読み込まれているか確認します。

Generateボタンの下にある花札のアイコンを押すと、エリアが出現します。

そこのLoraタブに画像が表示されていたらOKです。

上原亜衣モデルを試してみる

画像を生成していきます。

promptには以下を入力します。

<lora:aiUehara_v10:1>,1girl,best quality, ultra high res, (photorealistic:1.4), JAV Actress (mini dress:1.4), dark short cut hair, intricate earrings, intricate lace hair ornament,oval face,wide shoulder, best quality, ultra high res, (photorealistic:1.4), 1 girl, japanese, (mini dress:1.4),

negative promptには以下を入力します。

NSFW,(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, cropped, zoomed in, deformed arms, long hair, bra, bad hands, extra hands, bad fingers, paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans, multiple characters, (big breasts),
上原亜衣モデルを試してみる

やってみるとなんか画像の生成がうまくいきません。

似ていない女性がでてきます。

また、後日動作確認したいと思います。

あと、colaboratoryでGenerateボタンを押しても、何も起こらず、画像が生成されない場合があります。

ランタイムのログの表示をしてみます。

上原亜衣モデルを試してみる

以下のようにエラーが出ています。

Kernel interrupted: 26e4b8ae-f23d-43be-b0f2-86025324e850
上原亜衣モデルを試してみる

Google ColabなどのWebベースの開発環境で、実行中のカーネルが意図せずに中断されたことを示しています。通常、カーネルが中断される原因は、時間制限を超えた処理やメモリ不足などです。

有料版をそろそろ検討するかな。。。。