Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Stable Diffusionで遊んでみた
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Sigma
October 10, 2022
Programming
160
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Stable Diffusionで遊んでみた
Sigma
October 10, 2022
Transcript
13 slides
Stable Diffusion で遊んでみた ドミニオンのカードとか作ってみた
Stable Diffusionって何 • 拡散(diffusion)モデルに基づく画像生成AIの実装、GitHubで公開されている。 • 拡散モデルって何? ◦ ノイズから始めノイズを除去していくことで画像を生成するモデル。
使用環境 • Ryzen 5 5600g • DDR4 3200 MHz 64GB
• GeForce RTX 3060 12GB • Windows 11 • Ubuntu 20.04 WSL2
None
手法 • Ubuntu 20.04 CUDAのライブラリを入れる ◦ ドライバはふしぎなちからで Windowsにインストールしたものが使えるらしい • condaをインストールしUbuntu
20.04の中に仮想環境を作る ◦ wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh ◦ sh Anaconda3-2022.05-Linux-x86_64.sh ◦ conda create -n stable-diffusion python=3.9 ◦ conda activate stable-diffusion • 必要なライブラリを入れる ◦ conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge ◦ conda install jupyter pandas matplotlib -c conda-forge
手法 • Hugging face (モデルを配布) のアカウントをセットアップ ◦ https://huggingface.co/CompVis/stable-diffusion-v1-4 ◦ アクセストークンも作った
• 依存ライブラリを入れる ◦ pip install diffusers transformers scipy ftfy ◦ huggingface-cli login # アクセストークンを使う • https://tadaoyamaoka.hatenablog.com/entry/2022/08/23/222813
None
ドミニオンのカード作ってみた • ドミニオンって何 ◦ デッキを構築するボードゲーム • https://shardofhonor.github.io/dominion-card-generator/ を利用
財宝カード • many copper coins oil paint
呪いカード • lots crows perched on a branch in the
dark, oil painting
勝利点カード • mansion outside view oil painting
イベントカード • medieval parliament oil paintig
感想 • Stable Diffusion楽しい ◦ 呪文を入れると絵が出てくる ◦ image2imageでリファインする等もできそう ◦ AIに大量に生成させてディレクター気分
• クオリティ高くない? ◦ 既に同人ボドゲのコンポーネント(カードなど)に使えるレベル • Geforce RTX 3060 12GBいいな ◦ ミドルなのに12GBも載ってるし良い ◦ 1画像生成に15秒ほど • メモリ64GBいいな ◦ Stable Diffusionを動かして資料を作っていたら気がついたら 32GBを超えていた
More Decks by Sigma
See All by Sigma
Proxmox_VE.pdf
seiyasugimoto
0
250
EVAフレームワーク
seiyasugimoto
0
130
SSR+SPA
seiyasugimoto
0
170
Nuxtにおける設計
seiyasugimoto
0
110
Atomic Designを ディレクトリ以外で表現
seiyasugimoto
0
100
throttleすげぇぇぇ
seiyasugimoto
0
95
スマホでPythonしたい
seiyasugimoto
0
83
平文で保存するな!
seiyasugimoto
0
110
ソースコードを読もう
seiyasugimoto
0
110
Other Decks in Programming
See All in Programming
Crash Auto Pipelines
veronikapj
1
450
あなたはMCPの機能を、まだ知らない。
4geru
1
740
はじめてのKubernetesコントリビューション
nasa9084
0
320
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
340
The Cost of the DOM
ypresto
2
270
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
500
祈るテストから、探索するテストへ 〜Lincheckではじめる並行処理テスト〜
yyh_gl
0
430
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
230
Kotlin JVM用に作られたライブラリのKMPを前提とした再設計
jsoizo
0
230
SODA - FACT BOOK(EN)
sodainc
1
280
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
250
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
220
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
331
22k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.7k
Ethics towards AI in product and experience design
skipperchong
2
470
The Cost Of JavaScript in 2023
addyosmani
56
10k
Claude Code のすすめ
schroneko
67
230k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
390
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
440
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
680
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.9k