![木製のテーブルの上に座る木製のウサギがあり、横には言葉が書かれた壁と側面に穴があります。絵本の挿絵のような雰囲気で、ベアトリクス・ポターの影響が感じられます。また、紙の質感やアート&ランゲージ、英文テキストが要素として加わっている。
There is a wooden rabbit sitting on a wooden table with words written on the wall beside it and a hole in the side. It has the feel of a picture book illustration, and the influence of Beatrix Potter can be felt. The texture of the paper, art and language, and English text also add to the elements.](https://jikuchiyo.com/wp-content/uploads/2023/09/dictionary_word_1280-1024x576.jpg)
今回は、Stable Diffusionでプロンプトがわからないときに使える裏ワザを紹介します。
皆さんはプロンプトをどのように調べますか?
- Google,Yahooなどで検索する
- 翻訳サイトで日本語から英語に翻訳する
- Chat GPTを使用する
![](https://jikuchiyo.com/wp-content/uploads/2023/09/question-mark-2309040_1280-300x300.jpg)
一方で、次のような問題に出会ったことはないでしょうか?
- 適切な情報が見つからない
- 検索の仕方がわからない
- Chat GPTにどのように指示したら良いかわからない
ちょうどいいプロンプトが見つからなくて時間ばかりかかっちゃう
![](https://jikuchiyo.com/wp-content/uploads/2023/07/torio1-300x300.png)
![](https://jikuchiyo.com/wp-content/uploads/2023/07/jikuchiyo-300x300.png)
画像からプロンプトを生成する方法ありますよ
画像からプロンプトを生成すると次のようなことがわかります。
- 適切なプロントが何かがわかる
- 検索をしなくてもプロンプトがわかる
- Stable Diffusion内で完結させることができる
では、手順を解説します。
参考にしたい画像を用意する
今回は下の画像を使用します。
![](https://jikuchiyo.com/wp-content/uploads/2023/07/torio-300x214.png)
ikemen,rich,wealthy,gentle,noble
![](https://jikuchiyo.com/wp-content/uploads/2023/07/torio1-300x300.png)
![](https://jikuchiyo.com/wp-content/uploads/2023/07/jikuchiyo-300x300.png)
ウソの情報を出さないでくださいね~
画像は写真でも大丈夫です
img2imgのInterrogateDeepBooruを使用する
Stable Diffusionのタブ「img2img」をクリックし、「ここに画像をドロップ」に画像をドロップします。
![](https://jikuchiyo.com/wp-content/uploads/2023/09/image-45-1024x502.png)
「Interrogate DeepBooru」をクリックすることでプロンプトが生成されます。
![](https://jikuchiyo.com/wp-content/uploads/2023/09/image-46-1024x571.jpg)
1boy, beach, black_hair, blue_sky, brown_eyes, cloud, cloudy_sky, day, grin, horizon, letterboxed, looking_at_viewer, male_focus, ocean, outdoors, shirt, sky, smile, solo, upper_body
「Interrogate CLIP」をクリックすることでもプロンプトが生成されます。
a man in a white shirt and black pants standing in front of a window with mountains in the background, Adam Manyoki, cel shading, an anime drawing, dau-al-set
![](https://jikuchiyo.com/wp-content/uploads/2023/07/jikuchiyo-300x300.png)
Interrogate DeepBooruをオススメします
Interrogate DeepBooruをオススメする理由です。
- 単語で表現されているのでわかりやすい
- 修正しやすい
生成されたプロンプトで画像生成してみる
生成されたプロンプトを利用して画像生成してみましょう。
モデルは「kisaragi_mix」を使用しました。
プロンプト:1boy, beach, black_hair, blue_sky, brown_eyes, cloud, cloudy_sky, day, grin, horizon, letterboxed, looking_at_viewer, male_focus, ocean, outdoors, shirt, sky, smile, solo, upper_body
![](https://jikuchiyo.com/wp-content/uploads/2023/09/06386-3110509393-1boy-beach--1024x1024.jpg)
プロンプト:a man in a white shirt and black pants standing in front of a window with mountains in the background, Adam Manyoki, cel shading, an anime drawing, dau-al-set
![](https://jikuchiyo.com/wp-content/uploads/2023/09/06396-1764962778-a-man-in-a-wh-1024x1024.jpg)
同じ画像からなのに全然違う
![](https://jikuchiyo.com/wp-content/uploads/2023/07/torio1-300x300.png)
![](https://jikuchiyo.com/wp-content/uploads/2023/07/jikuchiyo-300x300.png)
注目する部分が違うからでしょう
まとめ
![](https://jikuchiyo.com/wp-content/uploads/2023/09/good-idea-2844393_1280-1024x512.jpg)
画像からプロンプトを出す裏ワザをご紹介しました。
画像からプロンプトを生成すると次のようなことがわかります。
- 適切なプロントが何かがわかる
- 検索をしなくてもプロンプトがわかる
- Stable Diffusion内で完結させることができる
皆さんもプロンプトに困ったときは活用してみてはいかがでしょうか?
以上です!