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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Sigma
October 10, 2022
Programming
150
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Stable Diffusionで遊んでみた
Sigma
October 10, 2022
More Decks by Sigma
See All by Sigma
Proxmox_VE.pdf
seiyasugimoto
0
240
EVAフレームワーク
seiyasugimoto
0
120
SSR+SPA
seiyasugimoto
0
170
Nuxtにおける設計
seiyasugimoto
0
110
Atomic Designを ディレクトリ以外で表現
seiyasugimoto
0
99
throttleすげぇぇぇ
seiyasugimoto
0
92
スマホでPythonしたい
seiyasugimoto
0
79
平文で保存するな!
seiyasugimoto
0
100
ソースコードを読もう
seiyasugimoto
0
100
Other Decks in Programming
See All in Programming
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
220
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
330
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
220
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
1k
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
Event is what happens
moro
2
780
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
590
Featured
See All Featured
A Tale of Four Properties
chriscoyier
163
24k
Designing for humans not robots
tammielis
254
26k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
270
How to Ace a Technical Interview
jacobian
280
24k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
Side Projects
sachag
456
43k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
410
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
590
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Transcript
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を超えていた