Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
20230322 - Generative AI 小聚 ft. Happy Designer
Search
蒼時弦や
March 22, 2023
Technology
490
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20230322 - Generative AI 小聚 ft. Happy Designer
TLDR
蒼時弦や
March 22, 2023
More Decks by 蒼時弦や
See All by 蒼時弦や
2024 - COSCUP - Clean Architecture in Rails
elct9620
2
220
2023 - RubyConfTW - Rethink Rails Architecture
elct9620
0
270
20230916 - DDDTW - 導入 Domain-Driven Design 的最佳時機
elct9620
0
510
2023 - WebConf - 選擇適合你的技能組合
elct9620
0
740
2022 - 默默會 - 重新學習 MVC 的 Model
elct9620
1
520
MOPCON 2022 - 從 Domain-Driven Design 看網站開發框架隱藏
elct9620
1
550
2022 - COSCUP - 我想慢慢寫程式該怎麼辦?
elct9620
0
320
2022 - COSCUP - 打造高速 Ruby 專案開發流程
elct9620
0
350
2021 - RubyKaigi - It is time to build your mruby VM on the microcontroller?
elct9620
0
320
Other Decks in Technology
See All in Technology
Autonomous AI Databaseサービス・アップデート(FY27)/ adb-service-update-jp-fy27
oracle4engineer
PRO
0
130
Redmine 7.0で私が開発した新機能の狙いと背景
vividtone
1
110
ブラウザアプリの継続的パフォーマンスモニタリング (序) / Continuous Browser Application Performance Monitoring; Act 1
moznion
0
110
From Vanilla Kubernetes to a Batteries-Included Platform: Developer Experience at 1,300+ Clusters
yosshi_
0
620
こんなアーキテクチャ図は嫌だ BEYOND THE TIME: 半年後の自分へ贈る15のメッセージ / 15 of Anti-pattern in AWS Architecture Diagrams
naospon
3
270
振り返りこそエンジニアの本領
negima
0
330
『止めない』を設計する — 制約の中で、事業の根幹を支える判断
hiroyaterui
0
230
AIで仕事のやり方を変える
matsu7874
2
980
Bet AI Day 2026丨AIを「使う」から、AIが「働く」へ ― LayerXが進める「組織AI」の社会実装
layerx
PRO
3
2.8k
AI時代のAPI品質を支えるガードレール / API Guardrails for API quality in the AI era
yokawasa
1
160
Bet AI Day 2026丨How We Bet AI: AIとともに働く場をつくる
layerx
PRO
2
2.8k
2026-09-04 SRE Tech Talk #15 怠惰なTerraform / Lazy Terraform
masasuzu
0
220
Featured
See All Featured
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
470
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Embracing the Ebb and Flow
colly
88
5.2k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
65k
Prompt Engineering for Job Search
mfonobong
0
440
First, design no harm
axbom
PRO
2
1.3k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
A designer walks into a library…
pauljervisheath
211
25k
Scaling GitHub
holman
464
140k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
190
Transcript
除了串 API 之外工程師還能做些什麼 Generative AI Meetup ft. Happy Designer
蒼時弦也 Software Developer https://blog.aotoki.me
開始之前 生態系進化太快,都不知道該怎麼辦⋯⋯
Diffusers 簡單使用 Stable Diffusion 的方法
Hugging Face AI 領域的 GitHub,大部分開源模型都可以在上面找到
import from import = = = = = torch diffusers
StableDiffusionPipeline pipe StableDiffusionPipeline.from_pretrained( , torch.float16) pipe pipe.to( ) prompt image pipe(prompt).images[ ] # 載入模型 # 進行運算 "runwayml/stable- diffusion-v1-5" "cuda" "a photo of an astronaut riding a horse on mars" torch_dtype 0
# ... # 載入不同模型 # 多重處理 prompt image txt2image(prompt).images[ ]
image upscale(image).images[ ] image image2image(image).images[ ] = = = = "a photo of an astronaut riding a horse on mars" 0 0 0
None
http://bit.ly/3JJf16o
Replicate 目前最好用的 Serverless GPU 服務
None
from import import class def def = = = =
= return cog BasePredictor, Path, Input torch ( ): (self): (self, image: Path Input( ), scale: Input( , ) ) -> Path: output Predictor BasePredictor setup predict # 初始化、載入模型 # 處理 e.g. Stable Diffusion Pipeline description description default "Image to enlarge" "Factor to scale image by" float 1.5
$ $ cog login cog push r8.im your username your
model name /< - >/< - - >
有 GPU 的伺服器、API 都有了,剩下就是套應用
AI Gacha 使用 Diffusers、Replicate 的實驗性專案
None
http://bit.ly/3yImmgc
我的看法 能做的事情其實不多,大部分應用的成本也偏高,但是商用已經沒 有問題,剩下要處理的大概會在 跟讓更多人能 合法的版權 輕鬆上手