1
2

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.

画像生成AI Stable Diffusionを無料で試す方法!

Last updated at Posted at 2023-05-05

はじめに

画像生成AIサービスが台頭している中、Stable Diffusionは他のサービスと比べ、特にモデルの学習を自由にカスタマイズできます。

このStable Diffusionをweb上で簡単に操作できるものがStable Diffusion web UIです。

Stable Diffusion web UIの問題点

Stable Diffusionを使って画像生成するためにはGPUが必要になります。

そのため、GPUがないPCを使用している人はgoogle colabpaper spaceを利用する必要があります。

Google Colabで警告表示が!

私は当初Google Colabの無料枠を使用してStable Diffusion web UIを使っていたのですが、警告が出てしまうようになってしまいました。

paperspaceも試したのですが、月額$8程度の有料プランへの登録が必要になります。

リソースを大量に使用したい場合はpaperspaceを使用するべきですが、軽く20~30枚程度気になるモデルを簡単に試す方法を探してみました。

Draw Things

Draw Thingsというアプリを使用すれば、ダウンロードしたモデルを読み込んで好きな画像を作成できます。
枚数制限がありますが、簡単にStable Diffusionを試したい人には最適だと思います。

モデルはこちらのサイトからダウンロードしました。

Draw Thingsを試してみる

civitaiの投稿を参考に画像を生成してみた結果

スクリーンショット 2023-05-05 22.41.51.png

すごいクオリティの画像が簡単に生成できました。
civitaiでは画像とそれを生成するためのモデルやプロンプトなどの設定が見れるのでかなり便利ですね。

作成した作品

best_quality__masterpiece__ultra_high_res___photorealistic_1_4___raw_photo__1girl__offshoulder__in_the_dark__deep_shadow__low_key__cold_light__lora_film_0_4_palette___large_breasts___lo_3984483382.png

hyperrealist_portrait_of_female_by_david_hockney_and_alphonse_mucha_fantasy_art__photo_realistic__dynamic_lighting__artstation__poster__volumetric_lighting__very_detailed_faces__4_k__aw_4042471286.png

best_quality__masterpiece__ultra_high_res___photorealistic_1_4___raw_photo__handsome_male__-ng_deepnegative_v1_75t__badhandv4___worst_quality_2____low_quality_2____normal_quality_2___low_518925706.png

すごいクオリティですよね。

モデルやプロンプトを変更することで、あなた好みの理想の画像を生成できます。

最後に

これを応用することで、自分の写真を美化するアプリとか作れたらなと思います。
実際に自分の写真でimageToImageを試してみましたが、モデルに引っ張られすぎたので、適切なモデルが見つかればチャレンジしてみたいです。

良かったらTwitterもフォローしていただけると嬉しいです!

AIに関する開発などをTweetしていきます。

1
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?