【リアルタイムお絵描きツール】realtime-stable-diffusion Dockerのセットアップガイド

Stable Diffusion

はじめに

realtime-stable-diffusion はリアルタイムでお絵描きができる革新的なツールです。このガイドでは、Dockerを利用してこのツールをセットアップし、使用する方法をステップバイステップで説明します。


こちらの記事もおすすめ

Blender 4.0 のPython APIで物体を発光・移動スクリプトを作成してみた
はじめにこの記事では、Blender 4.0のPython APIを使用して、オブジェクトを発光させつつ動かすスクリプトを作成する方法について解説します。デモ動画 @maki.sunwood.ai.labs Blenderの Python...
【ワンぽち起動】ChatVRMをDockerで起動してみた
はじめにChatVRMは、仮想現実内でのチャット体験を提供するプロジェクトです。この記事では、Dockerとdocker-composeを使用して、簡単なステップでChatVRMを起動する方法を紹介します。Dockerを使うと、環境構築が容...

必要なもの

  • Dockerがインストールされたコンピューター
  • 基本的なコマンドライン操作の知識

プロジェクトのクローン

  1. GitHubからrealtime-stable-diffusion のリポジトリをクローンします。以下のコマンドを実行してください。
git clone https://github.com/Sunwood-ai-labs/realtime-stable-diffusion_Docker.git
cd realtime-stable-diffusion

このステップにより、必要なファイルがローカルマシンにダウンロードされます。

Dockerファイルの確認

  1. ダウンロードされたフォルダ内で、Docker関連のファイルが含まれていることを確認します。
    • Dockerfile:コンテナのビルドに必要な指示が含まれます。
    • docker-compose.yml:コンテナの設定と起動に関する指示が含まれます。

Dockerコンテナのビルドと起動

  1. 次に、Dockerコンテナをビルドして起動します。以下のコマンドを実行してください。
docker-compose up

このコマンドにより、Dockerが必要なイメージをビルドし、アプリケーションが起動します。正常に起動すると、以下のようなメッセージが表示されます。

realtime-stable-diffusion_docker-realtime-stable-diffusion-1  | Running on local URL:  http://127.0.0.1:7860
realtime-stable-diffusion_docker-realtime-stable-diffusion-1  | Running on public URL: https://[ランダムなURL].gradio.live

アプリケーションへのアクセス

  1. アプリケーションが起動したら、ブラウザを開いて表示されたローカルURL(http://127.0.0.1:7860)にアクセスします。

これで、realtime-stable-diffusion を使ってリアルタイムでお絵描きを楽しむことができます。

リポジトリ

GitHub - Sunwood-ai-labs/realtime-stable-diffusion_Docker
Contribute to Sunwood-ai-labs/realtime-stable-diffusion_Docker development by creating an account on GitHub.

デモサイト

https://huggingface.co/spaces/MakiAi/realtime-stable-diffusion-local

参考リンク

https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/master/requirements_versions.txt
Accelerated Diffusers with PyTorch 2.0
PyTorch 2.0 has just been released. Its flagship new feature is torch.compile(), a one-line code change that promises to automatically improve performance acros...
gr.Image(tool=...) removed in 4.0? · Issue #6355 · gradio-app/gradio
Describe the bug I cannot see anywhere in your list of breaking changes that you should have removed the gr.Image(tool=..) functionality which allows you to ske...
Gradio Image Docs
Creates an image component that can be used to upload images (as an input) or display images (as an output).

コメント

タイトルとURLをコピーしました