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
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
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
290
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
golang-bob.pdf
iwatsukayura
0
130
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
790
APNsからLive Activityを開始する話
yumnumm
0
170
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
220
Agents on Rails - Rails at Scale 2026
irinanazarova
0
560
Event is what happens
moro
2
780
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
210
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
680
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
Design in an AI World
tapps
1
350
Fireside Chat
paigeccino
43
4.1k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
320
My Coaching Mixtape
mlcsv
0
360
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Writing Fast Ruby
sferik
630
63k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
360
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
490
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
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を超えていた